@extends('backend.layouts.app') @section('title', @$data['title']) @section('content')
@if(!empty($data['reports'])) @endif

{{ @$data['title'] }}

{{ _trans('common.Generated At :') }} {{ \Carbon\Carbon::now()->format('d F Y, h:i A') }} {{ _trans('common.By :') }} {{ auth()->user()->name }}

{{ _trans('common.P = Present') }} | {{ _trans('A = Absent') }} | {{ _trans('W = Weekend') }} | {{ _trans('H = Holiday') }} | {{ _trans('L = Leave') }}
@for ($i = 1; $i <= $data['totalDays']; $i++) @endfor @forelse ($data['reports'] ?? [] as $report) @if (!empty($report['month_statuses']['totalNotJoin'])) @endif @foreach ($report['month_statuses']['statuses'] as $key => $monthStatus) @if ($key >= $report['month_statuses']['totalNotJoin']) @endif @endforeach @empty @endforelse
{{ _trans('common.Employee') }}{{ $i }}{{ _trans('common.TP') }} {{ _trans('common.TA') }} {{ _trans('common.TW') }} {{ _trans('common.TH') }} {{ _trans('common.TL') }}
{{ $report['employee_name'] }} @if ($report['employee_id']) [{{ $report['employee_id'] }}] @endif
{{ $report['department'] }}, {{ $report['designation'] }}
{{ _trans('common.Not Joined') }} {!! $monthStatus !!}{{ $report['month_statuses']['totalPresent'] }} {{ $report['month_statuses']['totalAbsent'] }} {{ $report['month_statuses']['totalWeekend'] }} {{ $report['month_statuses']['totalHoliday'] }} {{ $report['month_statuses']['totalLeave'] }}
{{ _trans('common.No data found!') }}
{{ $data['reports']->links() }}
@endsection