@can('holidayapprover') @extends('adminlte::page') @section('title', config('adminlte.title') . ' | Holiday Approval') @section('content_header')

Holiday Approval

@stop @section('content')
@if (session('success')) @endif @if (session('error')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@foreach ($holDatas as $data) @if (!empty($data->id)) @endif @endforeach
# Employee Job title Date Day(s) Type Note Requested date Status Actions
{{ $data->id }} {{ $data->name }} {{ $data->jobtitle }} {{ date('d/m/Y', strtotime($data->start_date)) }} {{ $data->start_ampm }} - {{ date('d/m/Y', strtotime($data->end_date)) }} {{ $data->end_ampm }} {{ number_format($data->number_days, 1) }} {{ $data->type }} {{ $data->note }} {{ date('d/m/Y H:m:s', strtotime($data->created_at)) }} @switch($data->status) @case('Approved') @if ($data->cancel_req === 1) Requested Cancellation @else Approved @endif @break @case('Pending') @if ($data->cancel_req === 1)
Pending
Cancelling
@else Pending @endif @break @endswitch
@csrf @if ($data->cancel_req === 1) @else @endif
Reject
{{-- Filter Section --}}
Filter by:
@php if ($user->is_hr_manager == true || $user->is_hr_hq == true) { $type = 'all'; } elseif ($user->is_line_manager == true) { $type = 'approver'; } elseif ($user->is_holiday_approver == true) { $type = 'approver'; } @endphp {{-- Key --}} {{-- Legend Section --}} @include('components.calendar-legend')
Loading... Loading...
@stop @section('footer')   @stop @endcan