{!! Form::open(array('route' => array('po.ontime_infull'), 'class' => 'form-horizontal form-label-left', 'method' => 'POST','target'=>'_self')) !!}
{!! Form::select('company[]', $companies, null, array('id' => 'company', 'class' => 'form-control' ,'multiple' => 'multiple' ,'data-placeholder' => 'SELECT DIVISION')) !!}
@if(count($sel_branches)>0) {!! Form::select('branch[]', $sel_branches,'' , array('id' => 'branch_name', 'class' => 'form-control' ,'multiple' => 'multiple' ,'data-placeholder' => 'SELECT BRANCH')) !!} @else {!! Form::select('branch[]', [],'' , array('id' => 'branch_name', 'class' => 'form-control' ,'multiple' => 'multiple' ,'data-placeholder' => 'SELECT BRANCH')) !!} @endif
{!! Form::text('from', $date_format_from, array('class' => 'form-control', 'id' => 'date_from')) !!}
{!! Form::text('to', $date_format_to, array('class' => 'form-control', 'id' => 'date_to')) !!}
{!! Form::select('minmax',[0=>'Special Lens','1'=>'PO From MIn/Max'],0,['class'=>'form-control','id'=>'minmax']) !!}

OTIF (On Time-In Full) Delivery Report {{ $formattedDate }}

@foreach($po_list as $data) @endforeach
Company Location P.O Number Date Order Qty Order Date Received Qty Received Total Average Percentage
{{$data['company_name']}} {{$data['branch_name']}} {{$data['po_no']}} {{date("Y-m-d", strtotime($data["ordered_date"]))}} {{$data['ordered_qty']}} {{$data['received_date']}} {{$data['received_qty']}} {{number_format((($data["received_qty"] / $data["ordered_qty"]) * 100),2)}}
{!! Form::close() !!}