@extends('layouts.admin') @section('page-title') {{__('Manage Leave Report')}} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('action-btn')
@endsection @section('content')
{{ Form::open(array('route' => array('report.leave'),'method'=>'get','id'=>'report_leave')) }}

{{Form::label('month',__('Month'),['class'=>'form-label'])}} {{Form::month('month',isset($_GET['month'])?$_GET['month']:date('Y-m'),array('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']:'', array('class' => 'form-control select')) }}
{{ Form::label('department', __('Department'),['class'=>'form-label'])}} {{ Form::select('department', $department,isset($_GET['department'])?$_GET['department']:'', array('class' => 'form-control select')) }}
{{ 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']) }}{{ \Auth::user()->employeeIdFormat($leave['employee_id']) }} {{$leave['employee']}}
{{$leave['approved']}} {{__('View')}}
{{$leave['reject']}} {{__('View')}}
{{$leave['pending']}} {{__('View')}}
@endsection