@php $selectClass = 'mt-1 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500'; $takes = fn (string $filter): bool => $selected?->takes($filter) ?? false; @endphp
{{ __('Reports emailed to chosen people on a schedule, each covering the period just gone, with the report attached.') }}
| {{ __('Schedule') }} | {{ __('Report') }} | {{ __('When') }} | {{ __('To') }} | {{ __('Next') }} | {{ __('Last sent') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|---|
|
{{ $schedule->name }}
|
@if ($report = $registry->find($schedule->report_key))
{{ __($report->title) }}
{{ __(\App\Services\Crm\Reports\ReportFilters::PERIODS[$schedule->filters['period'] ?? ''] ?? '') }}
@else
{{ __('Report no longer offered') }}
@endif
|
{{ $scheduler->describe($schedule) }} | {{ collect($schedule->recipients ?? [])->map(fn ($id) => $members[$id] ?? null)->filter()->implode(', ') ?: __('Nobody') }} | {{ $schedule->next_run_at?->setTimezone($tz)->format('j M Y H:i') ?? __('Not scheduled') }} | {{ $schedule->last_sent_at?->setTimezone($tz)->format('j M Y H:i') ?? __('Never') }} |
@can('update', $schedule)
@endcan
@can('delete', $schedule)
@endcan
|
|
|
||||||
{{ __('Only members who can see the CRM receive it.') }}