JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@extends('layouts.admin') @section('page-title') {{ __('Manage Monthly Attendance') }} @endsection @section('breadcrumb') @endsection @section('action-button') @php $emp = isset($_GET['employee_id']) && !empty($_GET['employee_id']) ? $_GET['employee_id'] : []; $employees = implode(', ', $emp); @endphp @endsection @push('script-page') @endpush @section('content')
{{ Form::open(['route' => ['report.monthly.attendance'], 'method' => 'get', 'id' => 'report_monthly_attendance']) }}
{{ Form::label('month', __(' Month'), ['class' => 'form-label']) }} {{ Form::month('month', isset($_GET['month']) ? $_GET['month'] : '', ['class' => 'month-btn form-control current_date', 'autocomplete' => 'off', 'placeholder' => 'Select month']) }}
{{ Form::label('branch', __('Branch'), ['class' => 'form-label']) }} {{ Form::select('branch_id', $branch, isset($_GET['branch']) ? $_GET['branch'] : '', ['class' => 'form-control select branch_id', 'id' => 'branch-select branch_id']) }}
{{ Form::label('department', __('Department'), ['class' => 'form-label']) }}
{{ Form::label('employee', __('Employee'), ['class' => 'form-label']) }}
{{ 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 @push('script-page') @endpush