@extends('layouts.admin') @section('title', $alert->exists ? 'Edit crop alert' : 'New crop alert') @section('content') @php $v = fn ($k) => old($k, $alert->{$k}); $dt = fn ($k) => old($k, $alert->{$k} ? $alert->{$k}->copy()->setTimezone(config('jaykisan.display_timezone'))->format('Y-m-d\TH:i') : ''); @endphp @if ($alert->exists)
@include('partials.status', ['status' => $alert->status_id])
@include('partials.actions', ['actions' => $actions, 'route' => route('admin.crop-alerts.status', $alert), 'id' => 'alr'])
@endif
@csrf @if ($alert->exists) @method('PUT') @endif
Pick the narrowest area. Leave all empty to alert everyone.
@if ($alert->exists && \App\Models\Status::find_($alert->status_id)?->code === 'draft')
@csrf @method('DELETE')
@endif
@if ($alert->exists)
@include('partials.history', ['history' => $history])
@endif
@endsection