@extends('layouts.app') @section('title', 'Cancel Leave Applications') @section('content')

{{ Route::currentRouteName() == 'show-resigned-cancel-leave' ? 'Resigned Cancel Leave Applications' : 'All Cancel Leave Applications' }}

@if (Route::currentRouteName() == 'show-resigned-cancel-leave') Back @else Back @endif

{{ __('Leave Applications') }}

@if (Route::currentRouteName() == 'show-all-cancel-leave' || Route::currentRouteName() == 'filter-cancel-leaves') @if (Auth::user()->isGinzOrDev() || in_array(Auth::user()->id, $authorities))
@endif @endif
@include('public.table.cancel-leave-applications')
@if (Route::currentRouteName() == 'show-all-cancel-leave' || Route::currentRouteName() == 'filter-cancel-leaves') @if( $resigned_user_leave_applications->isNotEmpty() && (Auth::user()->allowToViewAllLeaves() || in_array(Auth::user()->id, $authorities)) ) @endif @endif
@endsection