@extends('layouts.admin') @section('page-title') {{__('Manage Monthly Attendance')}} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('action-btn')
{{-- --}}
@endsection @section('content')
{{ Form::open(array('route' => array('report.monthly.attendance'),'method'=>'get','id'=>'report_monthly_attendance')) }}
{{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('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')}} :
{{__('Attendance Summary')}}
@if($data['branch']!='All')
{{__('Branch')}} :
{{$data['branch']}}
@endif @if($data['department']!='All')
{{__('Department')}} :
{{$data['department']}}
@endif
{{__('Duration')}} :
{{$data['curMonth']}}
{{__('Attendance')}}
{{__('Total present')}}: {{$data['totalPresent']}} {{__('Total leave')}} : {{$data['totalLeave']}}
{{__('Overtime')}}
{{__('Total overtime in hours')}} : {{number_format($data['totalOvertime'],2)}}
{{__('Early leave')}}
{{__('Total early leave in hours')}} : {{number_format($data['totalEarlyLeave'],2)}}
{{__('Employee late')}}
{{__('Total late in hours')}} : {{number_format($data['totalLate'],2)}}
@foreach($dates as $date) @endforeach @foreach($employeesAttendance as $attendance) @foreach($attendance['status'] as $status) @endforeach @endforeach
{{__('Name')}}{{$date}}
{{$attendance['name']}} @if($status=='P') {{__('P')}} @elseif($status=='A') {{__('A')}} @endif
@endsection