@extends('layouts.authUser') @section('content') @auth @if (auth()->user()->role == 'Guru')

Pemulangan / Senarai pemulangan peralatan makmal

@else

Tempahan / Senarai pemulangan peralatan makmal

@endif @endauth
Eksport ke Excel
@auth @if (auth()->user()->role == 'Guru') @elseif (auth()->user()->role == 'Pembantu makmal') @endif @endauth @if($bookingItems->isEmpty()) @else @foreach($bookingItems as $index => $bookingItem) @auth @if (auth()->user()->role == 'Pembantu makmal') @endif @endauth @endforeach @endif
No. Tarikh & masa pemulangan Kelas Bilik makmal Tajuk eksperimenStatus pemulangan yang telah disemakStatus pemulangan Semak pemulangan
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
@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
@if (session('failure'))
{{ session('failure') }}
@endif @if (session('success'))
{{ session('success') }}
@endif
@endsection