@extends('adminlte::page') @section('title', 'Home') @section('content_header')

Dashboard

@stop @section('content')

Information about {{$athlete->name}}

@role('admin') @endrole

Name: {{$athlete->name}}

Email: {{$athlete->email}}

Mobile Phone: {{$athlete->mobile_phone ?: 'Undefined'}}

Birth Date: {{$athlete->birth_date ?: 'Undefined'}}

@if($athlete->coach)

Coach: {{$athlete->coach->name}}

@else

Coach: No coach assigned

@endif

Trainings of {{$athlete->name}}

@if(count($athlete->trainings) > 0) @role('admin') @endrole @foreach($athlete->trainings as $training) @role('admin') @endrole @endforeach
#Date Trining Type Options
{{$training->id}}{{date('d/m/Y', strtotime($training->date))}} @foreach($training->training_types as $training_type) {{$training_type->name}} @endforeach
Show Edit
@csrf @method('DELETE')
@else

No trainings found

@endif

Memberships of {{$athlete->name}}

@if(count($athlete->memberships) > 0) @foreach($athlete->memberships as $membership) @endforeach
# Date Amount Options
{{$membership->id}} {{date('d/m/Y', strtotime($membership->date))}} {{$membership->amount}}
Edit
@csrf @method('DELETE')
@else

No membership found

@endif
@stop