@extends('backend.layouts.master') @section('styles') @endsection @section('content')
@if ($insurer)
@include('backend.insurance.insurers.components.sidebar')
@include('backend.insurance.insurers.forms.insurer-form-edit', [ 'insurer' => $insurer, 'readonly' => $readonly, ])
@if ($insurer->lastActiveResidence) @include('backend.insurance.insurers.forms.address-residence-form-edit', ['insurer' => $insurer]) @else @include('backend.insurance.insurers.forms.address-residence-form', [ 'insurer' => $insurer, ]) @endif
@else
@include('backend.insurance.insurers.components.sidebar')
@include('backend.insurance.insurers.forms.insurer-form', [ 'readonly' => $readonly, ])
@include('backend.insurance.insurers.placeholders.address-form')
@endif
@endsection @section('scripts') @endsection