@extends('payroll.employee_frontend.layouts.employee') @section('content')

Tour History

Tour History
@foreach ($tours as $th) @endforeach
Location Tour Date Duration Purpose Status
{{$th->tour_location}} {{$th->from_date}} @php $f = strtotime($th->from_date); $t = strtotime($th->to_date); $datediff = $t - $f; echo round($datediff / (60 * 60 * 24))+1; @endphp Days {{$th->purpose}} {{ $th->status == 1 ? 'Active' : ($th->status == 2 ? 'rejected' : ($th->status == 3 ? 'pending' : 'Completed' ) )}}
@endsection