@extends('layouts.authUser') @section('content')
No. | Tarikh & masa pesanan | Kelas | Bilik makmal | Tajuk eksperimen | @auth @if (auth()->user()->role == 'Guru')Status pesanan | Status pemulangan | @elseif (auth()->user()->role == 'Pembantu makmal')Status pesanan | Semak pesanan | Tindakan | @endif @endauth
---|---|---|---|---|---|---|---|---|---|
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
@if ($bookingItem->booking_status === 'Dalam proses')
@elseif ($bookingItem->booking_status === 'Terima')
Status: Terima
@elseif ($bookingItem->booking_status === 'Tolak')
Status: Tolak
@endif
|
@endif @endauth |