Travel Bill

Name of Officer: {{$employee->name}}

Designation: {{$employee->designation_name}}

@php $start_date=$find_tour->start_date; $con_start_date= strtotime($start_date); $start_date_tour= date("j-F-Y", $con_start_date); $end_date=$find_tour->end_date; $con_end_date= strtotime($end_date); $end_date_tour= date("j-F-Y", $con_end_date); $datediff = strtotime($end_date) - strtotime($start_date); $datediff = floor($datediff/(60*60*24)); print '

Period :'.$start_date_tour.' to '.$end_date_tour.'

'; @endphp
@php $i=1; $total_airfare=null; $total_accomodation=null; $total_local_travel=null; $total_others=null; $grand_total=null; @endphp @foreach($tour_fare as $tour) @php $total_airfare=$total_airfare+$tour->airfare; $total_accomodation=$total_accomodation+$tour->accomodation; $total_local_travel=$total_local_travel+$tour->local_travel; $total_others=$total_others+$tour->others; $grand_total=$grand_total+$tour->airfare+$tour->accomodation+$tour->local_travel+$tour->others; $i++; @endphp @endforeach
Sl No Date Airfare Accomodation Bill Local Travel DA Others Total Remarks
{{$i}} {{date('dS F Y', strtotime($tour->tour_date))}} {{$tour->airfare}} {{$tour->accomodation}} {{$tour->local_travel}} 0 {{$tour->others}} {{$tour->airfare+$tour->accomodation+$tour->local_travel+$tour->others}} {{$tour->remark}}
Head wise Total {{$total_airfare}} {{$total_accomodation}} {{$total_local_travel}} {{$total_others}}
Grand Total {{$grand_total}}
({{$employee->name}})