@extends('layouts.admin') @section('title', 'Daily Attendance Report') @php $time = fn ($value) => $value ? \Illuminate\Support\Str::of($value)->substr(0, 5) : null; @endphp @section('content')
{{ $outsideOnly ? 'Nobody clocked in or out from outside the office on this day.' : 'No employees to show.' }}
@else| Employee | Status | Clock in | Clock out | Action |
|---|---|---|---|---|
|
{{ $employee->name }}
@if ($employee->branchOffice)
{{ $employee->branchOffice->name }} @endif |
@if (! $attendance) Not clocked in @else {{ ucfirst($attendance->status) }} @endif | @foreach (['check_in', 'check_out'] as $event)
@if ($attendance && $time($attendance->{$event}))
{{ $time($attendance->{$event}) }}
@if ($attendance->{$event.'_outside'} === true)
Outside
@elseif ($attendance->{$event.'_outside'} === false)
{{ $attendance->mapUrl($event) ? 'Office location' : 'Office WiFi' }}
@endif
@if ($attendance->mapUrl($event))
View location @if ($attendance->{$event.'_accuracy'} !== null) (±{{ $attendance->{$event.'_accuracy'} }} m) @endif @endif @if ($attendance->{$event.'_ip'}) IP {{ $attendance->{$event.'_ip'} }} @endif @else — @endif |
@endforeach
@if ($attendance) View @if (auth()->user()->hasRole('super-admin')) @endif @endif |
You are connected from {{ $currentIp }} @if ($currentIpInOffice) Office WiFi @elseif ($officeAddresses) Outside @endif — open this page on the office WiFi to see the address to enter.
@if ($canEditNetwork) @else
@if ($officeAddresses)
Office addresses: {{ implode(', ', $officeAddresses) }}
@else
No office WiFi has been set, so clock in and out does not check the network.
@endif
@if ($officeLocation)
Office location: {{ $officeLocation['latitude'] }}, {{ $officeLocation['longitude'] }} (within {{ $officeLocation['radius'] }} m)
@else
No office location has been set.
@endif