@extends('layouts.main') @section('content')
@if(Session::has('unauthorize'))
× {{ Session::get('unauthorize') }}
@endif @if(Session::has('update'))
× {{ Session::get('update') }}
@endif @if(Session::has('success'))
× {{ Session::get('success') }}
@endif
{!! Form::open(['url' => 'outgoing/search', 'class' => 'form-inline', 'role' => 'form', 'autocomplete' => 'off']) !!}
{!! Form::text('search', $search, ['class' => 'form-control', 'placeholder' => 'Search Document']) !!} {!! Form::button(' Search', ['class' => 'btn btn-primary btn-xs', 'type' => 'submit', 'title' => 'Search']) !!} Reset
{!! Form::close() !!}
@if($documents->isEmpty())
No incoming document(s) found.
@else @foreach($documents as $document) @endforeach
Subject Document Type Routing Slip Date/Time Routed Comments Keywords
@if(Auth::user()->ug_id != 1 && Auth::user()->ug_id != 3) @if($document->d_routingfrom != Auth::user()->u_id && $document->dr_seen == 0) @endif @endif @if($document->d_incomingreference != NULL) @endif {{ $document->d_subject }} {{ App\Models\DocumentType::where('dt_id', $document->dt_id)->pluck('dt_type') }} {{ $document->d_routingslip }} {{ date('F d, Y h:i A', strtotime($document->created_at)) }} {{ App\Models\Comment::where('comm_document', 1)->where('comm_reference', $document->d_id)->count() }} {{ $document->d_keywords }} @if($document->d_routingfrom == Auth::user()->u_id) @endif
@if($documents->render()) @endif @endif
@stop