@foreach($athletes as $athlete) @endforeach @foreach($trainers as $trainer) @endforeach
Username SPORTS NAME FIRST NAME DATE OF BIRTH GENDER ADDRESS PHONE NUMBER NATIONALITY PASSPORT NUMBER VALIDATION DATE EXPIRATION DATE VALID USA VISA VALIDATION DATE EXPIRATION DATE YELLOW FEVER VACCINATED COVID-19 VACCINATION TSHIRT SIZE TRACKSUIT SIZE DESCRIBE ALLERGIES IF ANY
{{ $athlete->user->name }} @foreach ($athlete->sportCategories as $sportCategory) @if ($loop->first) {{ $sportCategory->name }} @else , {{ $sportCategory->name }} @endif @endforeach {{ $athlete->lastname }} {{ $athlete->firstname }} {{ $athlete->birth_date }} @switch($athlete->gender) @case('m') Male @break @case('f') Female @break @default @endswitch {{ $athlete->address }} {{ $athlete->mobile }} {{ $athlete->nationality }} {{ $athlete->user->passport_number }} {{ $athlete->user->passport_issue_date ? $athlete->user->passport_issue_date->format("d-M-Y") : null }} {{ $athlete->user->passport_expiration_date ? $athlete->user->passport_expiration_date->format("d-M-Y") : null }} {{ $athlete->user->visa_number }} {{ $athlete->user->visa_issue_date ? $athlete->user->visa_issue_date->format("d-M-Y") : null }} {{ $athlete->user->visa_expiration_date ? $athlete->user->visa_expiration_date->format("d-M-Y") : null }} {{ $athlete->yellow_fever !== "[]" ? "Yes" : "No" }} {{ $athlete->covid_vaccination !== "[]" ? "Yes" : "No" }} @foreach ($athlete->outfits as $outfit) @foreach (json_decode($outfit->sizes) as $size) @if ($loop->first) {{ $size }} @else , {{ $size }} @endif @endforeach @endforeach @foreach ($athlete->outfits as $outfit) @foreach (json_decode($outfit->tracksuit_sizes) as $size) @if ($loop->first) {{ $size }} @else , {{ $size }} @endif @endforeach @endforeach {{-- @foreach ($athlete->healthRecords as $healthRecord) @if ($loop->first) {{ $healthRecord->examination }} @else , {{ $healthRecord->examination }} @endif @endforeach --}} {{ $athlete->allergies }}
{{ $trainer->user->name }} @foreach ($trainer->sportCategories as $sportCategory) @if ($loop->first) {{ $sportCategory->name }} @else , {{ $sportCategory->name }} @endif @endforeach {{ $trainer->lastname }} {{ $trainer->firstname }} {{ $trainer->birth_date }} @switch($trainer->gender) @case('m') Male @break @case('f') Female @break @default @endswitch {{ $trainer->address }} {{ $trainer->mobile }} {{ $trainer->nationality }} {{ $trainer->user->passport_number }} {{ $trainer->user->passport_issue_date ? $trainer->user->passport_issue_date->format("d-M-Y") : null }} {{ $trainer->user->passport_expiration_date ? $trainer->user->passport_expiration_date->format("d-M-Y") : null }} {{ $trainer->user->visa_number }} {{ $trainer->user->visa_issue_date ? $trainer->user->visa_issue_date->format("d-M-Y") : null }} {{ $trainer->user->visa_expiration_date ? $trainer->user->visa_expiration_date->format("d-M-Y") : null }} {{ $trainer->yellow_fever !== "[]" ? "Yes" : "No" }} {{ $trainer->covid_vaccination !== "[]" ? "Yes" : "No" }} @foreach ($trainer->outfits as $outfit) @foreach (json_decode($outfit->sizes) as $size) @if ($loop->first) {{ $size }} @else , {{ $size }} @endif @endforeach @endforeach @foreach ($trainer->outfits as $outfit) @foreach (json_decode($outfit->tracksuit_sizes) as $size) @if ($loop->first) {{ $size }} @else , {{ $size }} @endif @endforeach @endforeach {{-- @foreach ($trainer->healthRecords as $healthRecord) @if ($loop->first) {{ $healthRecord->examination }} @else , {{ $healthRecord->examination }} @endif @endforeach --}} {{ $trainer->allergies }}