@extends('layouts.main') @section('page-title') {{ __('Manage Leave Report') }} @endsection @section('page-breadcrumb') {{ __('Leave Report') }} @endsection @section('page-action')
@endsection @push('scripts') @endpush @php $company_settings = getCompanyAllSetting(); @endphp @section('content')
{{ Form::open(['route' => ['report.leave'], 'method' => 'get', 'id' => 'report_leave']) }}
{{ Form::label('type', __('Type'), ['class' => 'form-label']) }}
{{ Form::label('monthly', __('Monthly'), ['class' => 'form-label pointer']) }}
{{ Form::label('yearly', __('Yearly'), ['class' => 'form-label pointer']) }}
{{ Form::label('month', __('Month'), ['class' => 'form-label']) }} {{Form::month('month',isset($_GET['month'])?$_GET['month']:date('Y-m'),array('class'=>'month-btn form-control month-btn'))}}
{{ Form::label('year', __('Year'), ['class' => 'form-label']) }}
{{ Form::label('branch', !empty($company_settings['hrm_branch_name']) ? $company_settings['hrm_branch_name'] : __('Branch'), ['class' => 'form-label']) }} {{ Form::select('branch', $branch, isset($_GET['branch']) ? $_GET['branch'] : '', ['class' => 'form-control ','id'=>'branch']) }}
{{ Form::label('department', !empty($company_settings['hrm_department_name']) ? $company_settings['hrm_department_name'] : __('Department'), ['class' => 'form-label']) }} {{ Form::select('department', $department, isset($_GET['department']) ? $_GET['department'] : '', ['class' => 'form-control department']) }}
{{ Form::close() }}
@forelse ($leaves as $leave) @if(!empty($leave['employee_id'])) @else @endif @empty @include('layouts.nodatafound') @endforelse
{{ __('Employee ID') }} {{ __('Employee') }} {{ __('Approved Leaves') }} {{ __('Rejected Leaves') }} {{ __('Pending Leaves') }}
@permission('employee show') {{ Workdo\Hrm\Entities\Employee::employeeIdFormat($leave['employee_id']) }} @else {{Workdo\Hrm\Entities\Employee::employeeIdFormat($leave['employee_id'])}} @endpermission --{{ $leave['employee'] }}
{{ $leave['approved'] }} {{ __('View') }}
{{ $leave['reject'] }} {{ __('View') }}
{{ $leave['pending'] }} {{ __('View') }}
@endsection @push('scripts') @endpush