@extends('layouts.handa') @section('content')

Bulletins

{!! Form::open(['url' => 'backdoor/bulletins/search', 'class' => 'form-inline', 'role' => 'form', 'autocomplete' => 'off']) !!}
{!! Form::text('search', $search, ['class' => 'form-control', 'placeholder' => 'search bulletins', 'required']) !!}
{!! Form::button('', ['class' => 'btn btn-outline-secondary', 'type' => 'submit', 'title' => 'Search']) !!}
{!! Form::close() !!}
@if($bulletins->isEmpty())
No record(s) found.
@else @foreach($bulletins as $bulletin) @endforeach
Bulletin Type No. of Recipients SENT FAILED Date/Time Sent
{{ $bulletin->bulletin_type->bt_name }} {{ $bulletin->bulletin_recipients->count() == 0 ? '' : $bulletin->bulletin_recipients->count() }} {{ count($bulletin->bulletin_sent) == 0 ? '' : count($bulletin->bulletin_sent) }} {{ count($bulletin->bulletin_failed) == 0 ? '' : count($bulletin->bulletin_failed) }} {{ $bulletin->created_at->format('F d, Y h:i A') }}
@if($bulletins->render()) @endif @endif
@stop