芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/resources/views/leaves/index.blade.php
@extends('layouts.app') @push('datatable-styles') @include('sections.datatable_css') @endpush @php $addLeavePermission = user()->permission('add_leave'); $approveRejectPermission = user()->permission('approve_or_reject_leaves'); @endphp @section('filter-section')
@lang('app.date')
@lang('app.clearFilters')
@lang('app.employee')
@if ($employees->count() > 1)
@lang('app.all')
@endif @foreach ($employees as $employee)
@endforeach
@lang('modules.leaves.leaveType')
@lang('app.all')
@foreach ($leaveTypes as $leaveType)
{{ mb_ucwords($leaveType->type_name) }}
@endforeach
@if ($approveRejectPermission == 'all')
@lang('app.status')
@lang('app.all')
@lang('app.approved')
@lang('app.pending')
@lang('app.rejected')
@endif
@endsection @section('content')
@if ($addLeavePermission == 'all' || $addLeavePermission == 'added')
@lang('modules.leaves.addLeave')
@endif
@lang('app.selectAction')
@if ($approveRejectPermission == 'all')
@lang('app.change') @lang('app.leaveStatus')
@endif
@lang('app.delete')
@lang('app.approved')
@lang('app.pending')
@lang('app.rejected')
{!! $dataTable->table(['class' => 'table table-hover border-0 w-100']) !!}
@endsection @push('scripts') @include('sections.datatable_js') @endpush