@include('components.alert')
@if ($is_stflab)
{{-- STAFF LAB: TABLE LAYOUT --}}
@else
{{-- ADMINS / ADMMRK CLASSIC TABLE VIEW --}}
| No |
Deadline |
ID Sample |
Tgl Matching |
ID SAP (PS) |
Customer |
Status |
Action |
@foreach($samples as $index => $sample)
@php
$isExpired = false;
if (isset($sample->deadline) && $sample->deadline) {
try {
$now = \Carbon\Carbon::now()->startOfDay();
$deadline = \Carbon\Carbon::parse($sample->deadline)->startOfDay();
$isExpired = $now->gt($deadline);
} catch (\Exception $e) {
}
}
$trClass = $isExpired ? 'not' : '';
$bgColor = $isExpired ? '--bg-color: #ffe6e6;' : '';
@endphp
|
{{ $index + 1 }}
|
{{ !empty($sample->deadline) ? \Carbon\Carbon::parse($sample->deadline)->format('d/m/Y') : '-' }}
|
{{ $sample->id_sample ?? '-' }}
|
{{ \Carbon\Carbon::parse($sample->updated_at)->format('d/m/Y H:i') }}
|
ID PS :
{{ $sample->id_ps }}
|
{{ $sample->customer_name }}
|
{{ $sample->status ?? 'Not Matched' }}
|
@if($sample->id_sample)
View
@else
-
@endif
|
@endforeach
@endif
Note :
Sample telah melebihi deadline yang telah ditentukan.
Ctrl+S untuk menyimpan perubahan