@section('title', $notice ? 'Editar comunicado' : 'Novo comunicado') @section('head') @endsection @include('admin/includes/header') @php use App\Services\Notices; $kinds = [1 => 'Novidade', 2 => 'Aviso', 3 => 'Concluído']; $langs = [ 'pt' => ['label' => 'Português', 'short' => 'PT', 'sufix' => ''], 'en' => ['label' => 'Inglês', 'short' => 'EN', 'sufix' => '_en'], 'es' => ['label' => 'Espanhol', 'short' => 'ES', 'sufix' => '_es'], ]; $audience = old('lang', $notice->lang ?? 'all'); $ends = $notice && $notice->end_at ? date('Y-m-d', strtotime($notice->end_at)) : ''; $running = $notice ? Notices::running($notice) : true; $kind = (int) old('type', $notice->type ?? 1); @endphp
O cliente vê o título e a descrição breve no sino. O texto inteiro abre na página do aviso.