My Clients

Add clients by the email they registered with, and assign them workouts.

@if(session('status'))
{{ session('status') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if($clients->isEmpty())
No clients yet. Add one by email above.
@else
@foreach($clients as $client)

{{ $client->name }}

{{ $client->email }}

Assign workout
@csrf @method('DELETE')
@if($client->workouts->isEmpty())

No workouts assigned yet.

@else
    @foreach($client->workouts as $workout)
  • {{ $workout->title }} {{ $workout->created_at->format('M j, Y') }}
  • @endforeach
@endif
@endforeach
@endif