@extends('layouts.app') @section('title', 'Training Sessions') @section('content')
@if($sessions->count() > 0)
@foreach($sessions as $session)

{{ $session->title }}

{{ ucfirst(str_replace('_', ' ', $session->status)) }}
@if($session->trainingPlan)

{{ $session->trainingPlan->title }}

@endif
{{ $session->scheduled_start->format('M j, Y') }} {{ $session->scheduled_start->format('g:i A') }} - {{ $session->scheduled_end->format('g:i A') }} @if($session->instructor) {{ $session->instructor->name }} @endif @if($session->location_name) {{ $session->location_name }} @endif
@endforeach
{{ $sessions->links() }}
@else

No Training Sessions Found

Schedule training sessions to deliver training.

Schedule Session
@endif
@endsection