@extends('layouts.master') @section('title', $title) @section('page_css') @endsection @section('content') @include('report_sender.modal')
| Recipient | Sends to | Reports | Schedule | Last sent | Actions |
|---|---|---|---|---|---|
|
{{ $r->name }}
@if ($r->staff_name) Staff: {{ $r->staff_name }} @endif
@if (!$r->enabled)Paused@endif
|
@if ($r->send_sms) {{ $r->phone }} @endif
@if ($r->send_email) {{ $r->email }} @endif
|
@foreach ($reps as $k)
{{ $reports[$k][0] ?? $k }}
@endforeach
@if (in_array('income', $reps) && $types)
Types: {{ collect($types)->map(fn ($t) => $incomeTypes[$t] ?? null)->filter()->implode(', ') }}
@endif
|
{{ ucfirst($r->frequency) }}@if ($r->frequency === 'weekly') ({{ $weekdays[$r->weekday] ?? '' }})@endif
at {{ $r->send_time }}
@if ($r->frequency === 'daily') covers {{ $r->covers }} @endif
{{ $r->branch_name ?: 'All branches' }}
|
{{ $r->last_sent_on ? \Illuminate\Support\Carbon::parse($r->last_sent_on)->format('d M Y') : '—' }} | |
| No recipients yet — click Add recipient. | |||||
* * * * * php {{ base_path('artisan') }} schedule:run in cron).
| When | To | Message | Status |
|---|---|---|---|
| {{ local_time($l->created_at, 'd M Y h:i A') }} |
{{ $l->to }}
@if ($l->recipient) {{ $l->recipient }} @endif
|
{{ $l->subject ? $l->subject . "\n" : '' }}{{ \Illuminate\Support\Str::limit((string) $l->message, 400) }} |
{{ $l->status }}
{{ \Illuminate\Support\Str::limit((string) $l->response, 300) }}
|
| Nothing sent yet. | |||