@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' => 'document_types/search', 'class' => 'form-inline', 'role' => 'form', 'autocomplete' => 'off']) !!}
{!! Form::text('search', $search, ['class' => 'form-control', 'placeholder' => 'Search Document Type']) !!} {!! Form::button(' Search', ['class' => 'btn btn-primary btn-xs', 'type' => 'submit', 'title' => 'Search']) !!} Reset
{!! Form::close() !!}
@if($types->isEmpty())
No existing document type(s) found.
@else @foreach($types as $type) @endforeach
Document Type Document Count
{{ $type->dt_type }} {{ App\Models\Document::where('dt_id', $type->dt_id)->count() }} @if(Auth::user()->u_administrator == 1) @endif
@if($types->render())
@if($search == '') {!! $types->render() !!} @else {!! $types->appends(Request::only('search'))->render() !!} @endif
@endif @endif
@stop