@include('themes.basic.partials.flash-message')
@if ($membership->hasUserVoted(auth()->user()))
@if ($membership->associated_member)
@endif
@include('admin.partials.membership.profile', ['user' => $membership->user])
@php $dateFormats = []; @endphp
@foreach ($fields as $key => $field)
@php $value = (isset($membership)) ? old($field->name, $field->value) : old($field->name); @endphp
@if ($field->type == 'date' && isset($field->format))
@php $dateFormats[$field->name] = $field->format; @endphp
@endif
@if (!next($fields) || isset($fields[$key + 1]->tab))
@if ($field->name == 'why_expertij')
@if ($membership->professionalAttestation)
@include('themes.basic.partials.membership.edit.document-file-button', ['fileUrl' => $membership->professionalAttestation->getUrl(), 'fileName' => $membership->professionalAttestation->file_name, 'label' => 'attestation'])
@else
@include('themes.basic.partials.membership.edit.missing-document-button', ['label' => 'attestation'])
@endif
@if ($membership->resume)
@include('themes.basic.partials.membership.edit.document-file-button', ['fileUrl' => $membership->resume->getUrl(), 'fileName' => $membership->resume->file_name, 'label' => 'resume'])
@else
@include('themes.basic.partials.membership.edit.missing-document-button', ['label' => 'resume'])
@endif
@endif
@endif
@endforeach
@foreach ($membership->licences as $i => $licence)
@include('admin.partials.membership.licence', ['licence' => $licence, 'i' => $i])
@endforeach
@push ('scripts')
@endpush