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

Dashboard

@stop @section('content')

Training

{{--If user is coach need athletes asigned for create training--}} @if((auth()->user()->hasRole('coach') && count(auth()->user()->athletes) > 0) || auth()->user()->hasRole('admin') || auth()->user()->hasRole('athlete')) @endif
Clear
@if(count($trainings) > 0) @role('admin') @endrole @hasanyrole('coach|admin') @endhasanyrole @foreach($trainings as $training) @role('admin') @endrole @hasanyrole('coach|admin') @endhasanyrole @endforeach
#AthleteDate Trining Type Options
{{$training->id}}{{$training->user->name}}{{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
@stop