@push('styles') @endpush
@include('themes.basic.partials.flash-message')
@csrf @method('put') @if ($membership->status == 'member') @if ($membership->hasInsurance())
@endif
@endif
@if ($membership->status == 'pending_renewal' && !$membership->hasPendingPayment())
@csrf @method('put')
@endif
@csrf @method('put')
@foreach ($membership->licences as $i => $licence) @include('themes.basic.partials.membership.edit.licence', ['licence' => $licence, 'i' => $i]) @endforeach
@csrf @method('put')
@if (!$membership->associated_member)
@if ($membership->professionalAttestation) @include('themes.basic.partials.membership.edit.document-file-button', ['fileUrl' => $membership->professionalAttestation->getUrl(), 'fileName' => $membership->professionalAttestation->file_name]) @else @include('themes.basic.partials.membership.edit.missing-document-button') @endif
@if ($membership->resume) @include('themes.basic.partials.membership.edit.document-file-button', ['fileUrl' => $membership->resume->getUrl(), 'fileName' => $membership->resume->file_name]) @else @include('themes.basic.partials.membership.edit.missing-document-button') @endif
@endif
@if ((in_array($membership->status, ['pending_subscription', 'pending_renewal']) && !$membership->hasPendingPayment()) || ($membership->status == 'member' && !$membership->hasInsurance()))
@include('themes.basic.partials.membership.edit.payment')
@endif @if (!empty($invoices))
@include('themes.basic.partials.membership.edit.document')
@endif
@csrf
@push ('scripts') @endpush