@extends('layouts.app') @section('title', 'Training Plans') @section('content')
@if($plans->count() > 0)
@foreach($plans as $plan)

{{ $plan->title }}

{!! $plan->getStatusBadge() !!}
@if($plan->trainingNeed)

{{ $plan->trainingNeed->training_title }}

@endif
{{ ucfirst(str_replace('_', ' ', $plan->training_type)) }} @if($plan->planned_start_date) {{ $plan->planned_start_date->format('M j, Y') }} @endif @if($plan->instructor) {{ $plan->instructor->name }} @endif
@endforeach
{{ $plans->links() }}
@else

No Training Plans Found

Create a training plan to schedule training sessions.

Create Training Plan
@endif
@endsection