ultimatepos/resources/views/user/profile_professional/tabs/attendance.blade.php

35 lines
1.5 KiB
PHP

<div class="up-card">
<div class="up-card__header up-card__header--flex">
<h4>@lang('lang_v1.profile_tab_attendance')</h4>
@if($profile['attendance_url'])
<a href="{{ $profile['attendance_url'] }}" class="btn btn-xs btn-default">@lang('messages.view') @lang('lang_v1.all')</a>
@endif
</div>
<div class="up-card__body">
@if($profile['attendance_rows']->isEmpty())
<div class="up-empty-state"><p>@lang('lang_v1.profile_not_enough_data')</p></div>
@else
<div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>@lang('essentials::lang.clock_in')</th>
<th>@lang('essentials::lang.clock_out')</th>
<th>@lang('lang_v1.holding_status')</th>
</tr>
</thead>
<tbody>
@foreach($profile['attendance_rows'] as $row)
<tr>
<td>{{ $row->clock_in_time ? format_datetime($row->clock_in_time) : '—' }}</td>
<td>{{ $row->clock_out_time ? format_datetime($row->clock_out_time) : '—' }}</td>
<td>{{ $row->clock_out_time ? __('lang_v1.holding_status_active') : __('essentials::lang.in_progress') }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endif
</div>
</div>