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

{{ __($pageTitle) }} {{ count($pendingLeaves) }} @lang('modules.leaves.pendingLeaves')

@if($user->cans('add_leave')) @lang('modules.leaves.assignLeave') @endif
@endsection @push('head-script') @endpush @section('content')
@if($user->cans('view_leave'))
@endif

@lang('app.menu.leaves')

@if($user->cans('edit_leave'))
@lang('modules.leaves.pendingLeaves')
    @forelse($pendingLeaves as $key=>$pendingLeave)
  • {{ ($key+1) }}. {{ ucwords($pendingLeave->user->name) }} for {{ $pendingLeave->leave_date->format($global->date_format) }}
    @lang('app.accept') @lang('app.reject')
  • @empty @lang('messages.noPendingLeaves') @endforelse
@endif
{{--Ajax Modal--}} {{--Ajax Modal Ends--}} @endsection @push('footer-script') @endpush