@extends('business.layouts.admin') @section('breadcrumb') @endsection @section('content')
{{-- Filter Section --}}
{{-- Report Table --}}
Attendance Report
Showing {{ $report->firstItem() }} - {{ $report->lastItem() }} of {{ $report->total() }}
@foreach ($report as $row) {{-- In Time Box --}} {{-- Out Time Box --}} @endforeach
Date Employee Check-In Details Check-Out Details Status
{{ \Carbon\Carbon::parse($row->date)->format('d M, Y') }}
Day - {{ $row->day_of_week }}
{{ $row->employee_name }} @if ($row->in_time)
{{ date('h:i A', strtotime($row->in_time)) }}
@if ($row->in_latitude) View Location @endif
@else --- @endif
@if ($row->out_time)
{{ date('h:i A', strtotime($row->out_time)) }}
@if ($row->out_latitude) View Location @endif
@else --- @endif
@if (\Carbon\Carbon::parse($row->date)->isFuture()) Upcoming @elseif(!$row->in_time) Absent @else Present @endif
{{ $report->appends(request()->query())->links() }}
@endsection