@extends('layouts.authUser') @section('content') @auth @if (auth()->user()->role == 'Guru')
No. | Tarikh & masa pemulangan | Kelas | Bilik makmal | Tajuk eksperimen | @auth @if (auth()->user()->role == 'Guru')Status pemulangan yang telah disemak | @elseif (auth()->user()->role == 'Pembantu makmal')Status pemulangan | Semak pemulangan | @endif @endauth
---|---|---|---|---|---|---|---|
Tiada data dalam rekod | |||||||
{{ ($bookingItems->currentPage() - 1) * $bookingItems->perPage() + $index + 1 }} |
@if($bookingItem->bookingAction_status === 'Kerosakan')
@if($bookingItem->itemDamaged && $bookingItem->itemDamaged->count() > 0)
@php
// Extract unique timestamps
$uniqueTimestamps = $bookingItem->itemDamaged->pluck('created_at')->unique();
@endphp
@foreach($uniqueTimestamps as $timestamp)
{{ \Carbon\Carbon::parse($timestamp)->format('d-m-Y [h:i a]') }}
@endforeach
@else
Tiada tarikh kerosakan
@endif
@else
{{ \Carbon\Carbon::parse($bookingItem->returned_at)->format('d-m-Y [h:i a]') }}
@endif
|
{{$bookingItem->classroom}} | {{$bookingItem->location}} | {{$bookingItem->experimentTitle}} | @auth @if (auth()->user()->role == 'Guru') @if ($bookingItem->bookingAction_status === null) TIADA @elseif ($bookingItem->bookingAction_status === 'Telah dipulang') Status: Telah dipulang @elseif ($bookingItem->bookingAction_status === 'Diterima') Status: Diterima @elseif ($bookingItem->bookingAction_status === 'Masalah') Status: Masalah @elseif ($bookingItem->bookingAction_status === 'Kerosakan') Status: Kerosakan @endif @elseif (auth()->user()->role == 'Pembantu makmal') Telah dipulang @endif @endauth | @auth @if (auth()->user()->role == 'Pembantu makmal')
@if ($bookingItem->bookingAction_status === null)
TIADA
@elseif ($bookingItem->bookingAction_status === 'Telah dipulang')
@elseif ($bookingItem->bookingAction_status === 'Diterima')
Status: Diterima
@elseif ($bookingItem->bookingAction_status === 'Masalah')
Status: Masalah
@elseif ($bookingItem->bookingAction_status === 'Kerosakan')
Status: Kerosakan
@endif
|
@endif
@endauth