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

Create tour Application

@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@foreach ($tours as $th) @endforeach
Your Recent Tour history
Location Tour Date Duration 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->status == 1 ? 'Active' : ($th->status == 2 ? 'rejected' : ($th->status == 3 ? 'pending' : 'Completed' ) )}}
@endsection @section('script') @endsection