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

Documents Management

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

@endif
Document Records
{!! Form::open(['method' => 'GET', 'url' => '/mis/document/control/list','role' => 'search', 'class' => 'pull-left select-imp mt-1-negative', 'id' => 'docStatusFilterForm']) !!} {!! Form::select('status',['' => 'Select Status'] + $page_data['status'] ,null, ['id'=>'selectStatus','class' => 'pull-left select-imp']) !!} {!! Form::close() !!}
{!! Form::open(['method' => 'POST', 'route' => 'mis.document.store','id'=>'form1','class' => 'form-vertical', 'role' => 'search','files' => true]) !!}
{!! Form::select('transporter',[''=>'Transporter'] + $page_data['transporter']->toArray() ,null, ['class' => 'form-control bw-122']) !!} {!! $errors->first('transporter', '

:message

') !!}
{!! Form::text('document', null, ['class' => 'form-control bw-100 bw-padding']) !!} {!! $errors->first('document', '

:message

') !!}
{!! Form::text('document_number', null, ['class' => 'form-control bw-100 bw-padding']) !!} {!! $errors->first('document_number', '

:message

') !!}
{!! Form::select('supplier',[''=>'Supplier'] + $page_data['supplier']->toArray() ,null, ['class' => 'form-control bw-122']) !!} {!! $errors->first('supplier', '

:message

') !!}
{!! Form::select('registration_number',[''=>'Asset Nr'] + $page_data['registration_number']->toArray() ,null, ['class' => 'form-control bw-122 reg_num']) !!} {!! $errors->first('registration_number', '

:message

') !!}
{!! Form::select('equipment',['' => 'Equipment'], null, ['class' => 'form-control bw-122']) !!} {!! $errors->first('equipment', '

:message

') !!}
{!! Form::date('valid_from', null, ['class' => 'form-control bw-122']) !!} {!! $errors->first('valid_from', '

:message

') !!}
{!! Form::date('valid_to', null, ['class' => 'form-control bw-122']) !!} {!! $errors->first('valid_to', '

:message

') !!}
{!! Form::label('file', 'Upload') !!} {!! $errors->first('file', '

:message

') !!}
{!! Form::close() !!} {!! Form::open(['method' => 'GET', 'url' => '/mis/document/control/list','role' => 'search', 'id' => 'docFilterForm']) !!}
@foreach($doc as $item) @endforeach
{!! Form::select("transporter",["" => "Transporter"] + $page_data['transporter_filter_data']->toArray() ,null, ["class" => "form-control width-112px", "id" => 'transporterFilterId']) !!} {!! Form::select("document",["" => "Document"] + $page_data['document_filter_data']->toArray() ,null, ["class" => "form-control width-112px", "id" => 'documentFilterId']) !!} {!! Form::select("document_nr",["" => "Doc Nr"] + $page_data['docnr_filter_data']->toArray() ,null, ["class" => "form-control width-112px", "id" => 'docNrFilterId']) !!} {!! Form::select("supplier",["" => "Supplier"] + $page_data['supplier_filter_data']->toArray() ,null, ["class" => "form-control width-112px", "id" => 'supplierFilterId']) !!} {!! Form::select("asset_nr",["" => "Asset Nr"] + $page_data['assetnr_filter_data']->toArray() ,null, ["class" => "form-control width-112px", "id" => 'assetNrFilterId']) !!} Equipment From To Country File Days Due
{{ $item->transporter['name'] }} {{ $item->document }} {{ $item->document_number }} {{ $item->supplier['name'] }} {{ $item->registration_number }} {{ $item->equipment }} {{ $item->valid_from }} {{ $item->valid_to }} {{ $item->supplier['country'] }} @if($item->upload_file)View@endif @if($dys > 90) {{ $dys }} days @endif @if($dys <= 90 && $dys > 60) {{ $dys }} days @endif @if($dys <= 60 && $dys > 30) {{ $dys }} days @endif @if($dys <= 30 && $dys > 0) {{ $dys }} days @endif @if($dys < 0) {{ $item->status }} @endif
{{ $doc->appends($_GET)->render()}}
Download Excel
{!! Form::close() !!}
@endsection @section('scripts') @endsection