@extends('layouts.main') @section('page-title') {{ __('Manage Monthly Attendance') }} @endsection @section('page-breadcrumb') {{ __('Monthly Attendance') }} @endsection @section('page-action')
@endsection @php $company_settings = getCompanyAllSetting(); @endphp @section('content')
{{ Form::open(['route' => ['report.monthly.attendance'], 'method' => 'get', 'id' => 'report_monthly_attendance']) }}
{{ Form::label('type', __('Type'), ['class' => 'form-label']) }}
{{ Form::label('monthly', __('Monthly'), ['class' => '']) }}
{{ Form::label('weekly', __('Weekly'), ['class' => '']) }}
{{ Form::label('month', __(' Month'), ['class' => 'form-label']) }} {{ Form::month('month', isset($_GET['month']) ? $_GET['month'] : date('Y-m'), ['class' => 'month-btn form-control month-btn']) }}
{{ Form::label('week', __(' Week'), ['class' => 'form-label']) }} {{ Form::week('week', isset($_GET['week']) ? $_GET['week'] : date('Y-\WW'), ['class' => 'week-btn form-control week-btn']) }}
{{ Form::label('branch', !empty($company_settings['hrm_branch_name']) ? $company_settings['hrm_branch_name'] : __('Branch'), ['class' => 'form-label']) }} {{ Form::select('branch_id', $branch, isset($_GET['branch_id']) ? $_GET['branch_id'] : null, ['class' => 'form-control', 'id' => 'branch_id', 'required' => 'required', 'placeholder' => __('Select ' . (!empty($company_settings['hrm_branch_name']) ? $company_settings['hrm_branch_name'] : __('select Branch')))]) }}
{{ Form::label('department', !empty($company_settings['hrm_department_name']) ? $company_settings['hrm_department_name'] : __('Department'), ['class' => 'form-label ']) }} {{ Form::select('department_id', [], isset($_GET['department_id']) ? $_GET['department_id'] : null, ['class' => 'form-control department_id', 'id' => 'department_id', 'required' => 'required', 'placeholder' => __('Select ' . (!empty($company_settings['hrm_department_name']) ? $company_settings['hrm_department_name'] : __('Department')))]) }}
{{ Form::label('employee', __(' Employee'), ['class' => 'form-label']) }}
{{ Form::close() }}
{{ __('Report') }}

{{ __('Attendance Summary') }}

@if ($data['branch'] != 'All')
{{ !empty($company_settings['hrm_branch_name']) ? $company_settings['hrm_branch_name'] : __('Branch') }}

{{ $data['branch'] }}

@endif @if ($data['department'] != 'All')
{{ !empty($company_settings['hrm_department_name']) ? $company_settings['hrm_department_name'] : __('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 @forelse($employeesAttendance as $attendance) @foreach ($attendance['status'] as $status) @endforeach @empty @include('layouts.nodatafound') @endforelse
{{ __('Name') }}{{ $date }}
{{ $attendance['name'] }} @if ($status == 'P') {{ __('P') }} @elseif($status == 'A') {{ __('A') }} @endif
@endsection @push('scripts') @endpush