@extends('layouts.admin') @section('title', 'Laundry Order #'.$order->id) @section('content') @php $currency = \App\Models\Hotel::query()->value('currency') ?? 'USD'; @endphp Edit @if(!$order->charged && $order->reservation_id)
@csrf
@endif
@csrf @method('DELETE')
Type
{{ ucfirst($order->type) }}
Status
Charged
{{ $order->charged ? 'Yes' : 'No' }}
Total
{{ $currency }} {{ number_format($order->total, 2) }}
Guest
{{ $order->guest ? $order->guest->first_name.' '.$order->guest->last_name : '—' }}
Room
{{ $order->room?->number ?? '—' }}
Reservation
@if($order->reservation){{ $order->reservation->number }}@else — @endif
Items
@foreach($order->items ?? [] as $item)@endforeach
DescriptionQtyUnit PriceTotal
{{ $item['description'] ?? '—' }}{{ $item['quantity'] ?? 0 }}{{ number_format($item['unit_price'] ?? 0, 2) }}{{ number_format($item['total'] ?? (($item['quantity'] ?? 0)*($item['unit_price'] ?? 0)), 2) }}
@endsection