JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@extends('layouts.admin') @section('page-title') {{ __('Manage Leave Report') }} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('action-button') @endsection @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']) }}
{{ Form::label('yearly', __('Yearly'), ['class' => 'form-label']) }}
{{ Form::label('month', __('Month'), ['class' => 'form-label']) }} {{ Form::month('month', isset($_GET['month']) ? $_GET['month'] : date('Y-m'), ['class' => 'month-btn form-control']) }}
{{ Form::label('year', __('Year'), ['class' => 'form-label']) }}
{{ Form::label('branch', __('Branch'), ['class' => 'form-label']) }} {{ Form::select('branch', $branch, isset($_GET['branch']) ? $_GET['branch'] : '', ['class' => 'form-control select branch_id', 'id' => 'branch']) }}
{{ Form::label('department', __('Department'), ['class' => 'form-label']) }}
{{ Form::select('department', $department, isset($_GET['department']) ? $_GET['department'] : '', ['class' => 'form-control select department_id']) }}
{{ Form::label('department', __('Department'), ['class' => 'form-label']) }}
{{ Form::close() }}
--}}
{{ Form::open(['route' => ['report.leave'], 'method' => 'get', 'id' => 'report_leave']) }}
{{ Form::label('type', __('Type'), ['class' => 'form-label']) }}
{{ Form::label('monthly', __('Monthly'), ['class' => 'form-label']) }}
{{ Form::label('yearly', __('Yearly'), ['class' => 'form-label']) }}
{{ Form::label('month', __('Month'), ['class' => 'form-label']) }} {{ Form::month('month', isset($_GET['month']) ? $_GET['month'] : date('Y-m'), ['class' => 'month-btn form-control']) }}
{{ Form::label('year', __('Year'), ['class' => 'form-label']) }}
{{ Form::label('branch', __('Branch'), ['class' => 'form-label']) }} {{ Form::select('branch', $branch, isset($_GET['branch']) ? $_GET['branch'] : '', ['class' => 'form-control select branch_id', 'id' => 'branch']) }}
{{ Form::label('department', __('Department'), ['class' => 'form-label']) }}
{{ Form::close() }}
{{ __('Report') }}

{{ $filterYear['type'] . ' ' . __('Leave Summary') }}

@if ($filterYear['branch'] != 'All')
{{ __('Branch') }}

{{ $filterYear['branch'] }}

@endif @if ($filterYear['department'] != 'All')
{{ __('Department') }}

{{ $filterYear['department'] }}

@endif
{{ __('Duration') }}

{{ $filterYear['dateYearRange'] }}

{{ __('Approved Leaves') }}

{{ $filter['totalApproved'] }}

{{ __('Rejected Leave') }}

{{ $filter['totalReject'] }}

{{ __('Pending Leaves') }}

{{ $filter['totalPending'] }}

{{--
--}}
@foreach ($leaves as $leave) @endforeach
{{ __('Employee ID') }} {{ __('Employee') }} {{ __('Approved Leaves') }} {{ __('Rejected Leaves') }} {{ __('Pending Leaves') }}
{{ \Auth::user()->employeeIdFormat($leave['employee_id']) }} {{ $leave['employee'] }}
{{ $leave['approved'] }} {{ __('View') }}
{{ $leave['reject'] }} {{ __('View') }}
{{ $leave['pending'] }} {{ __('View') }}
@endsection