@extends('layouts.app') @section('page-title')

@lang($pageTitle) {{ $pendingLeaves }} @lang('modules.leaves.pendingLeaves') {{ $approvedLeaves }} @lang('modules.leaves.approvedLeaves') {{ $rejectedLeaves }} @lang('modules.leaves.rejectedLeaves')

{{-- @lang('modules.leaves.calendarView') --}} @if(!request()->user()->hasRole('admin')) @if(hasAccessOf('leaves')['is_write']) @lang('modules.leaves.applyLeave') @endif @endif @if(hasAccessOf('leaves')['is_write'] && (auth()->user()->hasRole('cto') || auth()->user()->hasRole('program_manager') || auth()->user()->hasRole('admin'))) @lang('modules.leaves.assignLeave') @endif
@endsection @push('head-script') @endpush @section('content') @section('filter-section')
@csrf
@lang('app.selectDateRange')
@lang('app.to')
@if(hasAccessOf('manage_leaves')['is_write'])
@lang('app.employee') @lang('app.name')
@endif
@lang('app.select') @lang('app.status')
@endsection {{--
# @lang('app.employee') @lang('app.leaveDate') @lang('app.leaveStatus') @lang('app.reason') @lang('app.leaveType') @lang('app.action')
--}}
{!! $dataTable->table([ 'class' => 'table table-bordered table-hover toggle-circle default footable-loaded footable', ]) !!}
@endsection @push('footer-script') {!! $dataTable->scripts() !!} {{-- add this script for reload issue user remains on the same page that perform action --}} {{-- end script for the loading issue --}}