@extends('layouts.authUser') @section('content')

Tempahan / Senarai pesanan peralatan makmal

@auth @if (auth()->user()->role == 'Guru') @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) @endif @endauth @endforeach @endif
No. Tarikh & masa pesanan Kelas Bilik makmal Tajuk eksperimenStatus pesanan Status pemulanganStatus pesanan Semak pesanan Tindakan
Tiada data dalam rekod
{{ ($bookingItems->currentPage() - 1) * $bookingItems->perPage() + $index + 1 }} {{ \Carbon\Carbon::parse($bookingItem->booking_date)->format('d-m-Y') }}
[ {{ \Carbon\Carbon::parse($bookingItem->booking_startTime)->format('g:i A') }} - {{ \Carbon\Carbon::parse($bookingItem->booking_endTime)->format('g:i A') }} ]
{{$bookingItem->classroom}} {{$bookingItem->location}} {{$bookingItem->experimentTitle}} @auth @if (auth()->user()->role == 'Guru') @if ($bookingItem->booking_status == 'Terima') {{ $bookingItem->booking_status }} @elseif ($bookingItem->booking_status == 'Dalam proses') {{ $bookingItem->booking_status }} @elseif ($bookingItem->booking_status == 'Tolak') {{ $bookingItem->booking_status }} @endif @if($bookingItem->booking_status === 'Dalam proses') @endif @elseif (auth()->user()->role == 'Pembantu makmal') {{$bookingItem->booking_status}} @endif @endauth @auth @if (auth()->user()->role == 'Guru')
@if ($bookingItem->bookingAction_status == "Kerosakan") Kerosakan @elseif ($bookingItem->bookingAction_status == "Telah dipulang") Telah dipulang @else @if($bookingItem->booking_status === 'Terima') @else @endif @endif
@elseif (auth()->user()->role == 'Pembantu makmal')
@if ($bookingItem->booking_status === 'Dalam proses') @elseif ($bookingItem->booking_status === 'Terima') Status: Terima @elseif ($bookingItem->booking_status === 'Tolak') Status: Tolak @endif
@if($bookingItem->booking_status === 'Terima' && $bookingItem->bookingAction_status === null) @else @endif
@if (session('failure'))
{{ session('failure') }}
@endif @if (session('success'))
{{ session('success') }}
@endif
@endsection