@extends('layouts.admin.app') @section('title',\App\Utils\translate('demande_list')) @push('css_or_js') @endpush @section('content')

{{\App\Utils\translate('demande_list')}} {{$demandes->total()}}

@foreach($demandes as $key=>$demande) @endforeach
{{\App\Utils\translate('#')}} {{\App\Utils\translate('name')}} {{\App\Utils\translate('service')}} {{\App\Utils\translate('department')}} {{\App\Utils\translate('nature_of_leave')}} {{\App\Utils\translate('start_date')}} {{\App\Utils\translate('end_date')}} {{\App\Utils\translate('status')}} {{\App\Utils\translate('action')}}
{{ $demandes->firstItem()+$key }} {{ $demande->name }} {{ $demande->adminRole->name }} {{ $demande->department->name }} {{ $demande->natureOfLeave->name }} {{ $demande->from }} {{ $demande->to }} @if (\App\Utils\Helpers::module_permission_check('can_change_status_leave_request')) {{ \App\Utils\translate(ucfirst($demande->status)) }} @else {{ \App\Utils\translate(ucfirst($demande->status)) }} @endif
@csrf @method('delete')
{!! $demandes->links() !!}
@if(count($demandes)==0)
{{\App\Utils\translate('Image Description')}}

{{ \App\Utils\translate('No_data_to_show')}}

@endif
@endsection @push('script_2') @endpush