@lang('modules.dashboard.serviceClockInOut')

{{ now()->timezone(timezone())->format('l, d M Y') }}

@if(user_can('Create Service Time Logging') || isRole() == 'Guard')
@lang('app.clockIn')
@endif
@forelse ($attendances as $item)
{{ \Carbon\Carbon::parse($item->clock_in_time)->timezone(timezone())->format('h:i A') }}
@if($item->status != 'clock_in')
{{ \Carbon\Carbon::parse($item->clock_out_time)->timezone(timezone())->format('h:i A') }}
@endif
@if($item->status == 'clock_in') @if(user_can('Update Service Time Logging') || isRole() == 'Guard')
@lang('app.clockOut')
@else
@lang('app.clockOut')
@endif @endif
@empty

@lang('messages.noClockInOut')

@endforelse
{{ __("modules.serviceManagement.addClockIn") }} @livewire('forms.addAttendance') {{ __('Close') }}