@php $season = $widget['data']['season']; $seasonJobCount = $widget['data']['seasonJobCount']; $seasonTotalMinutes = $widget['data']['seasonTotalMinutes']; $jobsPerMonth = $widget['data']['jobsPerMonth']; @endphp

@if ($season->isCurrent) {{ __('dashboard.season_current') }} @else {{ __('dashboard.season_last', ['label' => $season->label]) }} @endif

@if ($seasonJobCount === 0)

{{ __('dashboard.no_jobs_in_season') }}

@else
{{ __('dashboard.total_jobs') }}
{{ $seasonJobCount }}
{{ __('dashboard.total_hours') }}
{{ intdiv($seasonTotalMinutes, 60) }}h {{ $seasonTotalMinutes % 60 }}m

{{ __('dashboard.jobs_per_month') }}

@foreach ($jobsPerMonth as $month => $count) @php $maxCount = $jobsPerMonth->max(); $widthPercent = $maxCount > 0 ? round(($count / $maxCount) * 100) : 0; @endphp
{{ __('dashboard.month_' . $month) }}
{{ $count }}
@endforeach
@endif