@extends('template.layouts.template-base') @section('title') Bulk Attendance | {{ config('setting.website_name') ?: config('app.name') }} @endsection @section('content')

Bulk Attendance

@csrf
@if(session('summary')) @php $summary = session('summary'); @endphp @if(isset($summary['imported']))
{{ $summary['imported'] }} staff row(s) uploaded. @if(!empty($summary['errors'])) {{ count($summary['errors']) }} row(s) have errors and were not uploaded. @endif
@endif {{-- Each row not uploaded, with its reasons; the row is the row number in the Excel file --}} @if(!empty($summary['errors']))
@foreach($summary['errors'] as $error) @endforeach
Row Emp ID Emp Name Reason (not uploaded)
{{ $error['row'] }} {{ $error['emp_id'] ?: '-' }} {{ $error['emp_name'] ?: '-' }} @foreach($error['reasons'] as $reason)
{{ $reason }}
@endforeach
@endif @if(!empty($summary['dates']))
Mismatched Dates: {{ str_replace(',', ' |', $summary['dates']) }}
@endif @endif
@error('staff_type')
{{ $message }}
@enderror
@error('clients')
{{ $message }}
@enderror
@error('projects')
{{ $message }}
@enderror
@error('from_date')
{{ $message }}
@enderror
@error('to_date')
{{ $message }}
@enderror
@error('attendance')
{{ $message }}
@enderror
@section('scripts') @include('template.attendance.partials.date-guard') @endsection @endsection