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

Travel Order details - #{{$travel_order->to_number}} ({{$travel_order->points()}} points)

Delete Edit
@if(session()->get('success'))
{{ session()->get('success') }}

@endif
To# {{$travel_order->to_number}}
PRO# {{$travel_order->pro_number}}
PRO status {{$travel_order->pro_status}}
TO status {{$travel_order->to_status}}
PRO count {{$travel_order->pro_count}}
PRO leg {{$travel_order->leg_count}}
Ship date @if(isset($travel_order->ship_date)){{$travel_order->ship_date->format('m/d/Y')}}@else - @endif
Delivery date @if(isset($travel_order->delivery_date)){{$travel_order->delivery_date->format('m/d/Y')}}@else - @endif
Driver @if($travel_order->driver!=null){{$travel_order->driver->name}}@else - @endif
PU Customer and Location {{$travel_order->pr_customer}}
DR Customer and Location {{$travel_order->dr_customer}}
Border Crossing {{$travel_order->border_crossing}}
Total points {{$travel_order->points()}}
# times late {{$travel_order->lateTime()['times']}}
# hours late {{$travel_order->lateTime()['hours']}}
@if($travel_order->reports()->count()>0)

Reports

{{----}} @foreach($travel_order->reports as $report) {{-- --}} @endforeach
Report DatePoints
{{$report->report}} {{$report->date->format('m/d/Y')}} {{$report->time}}@if($report->report=='2 - Arrival') 20 @else 10 @endif
@else

No reports are available for this TO#

@endif
@endsection