@extends('admin.layout.master') @section('content')

{{ __('admin.show') }}

{{-- --}} {{-- --}}
@if ($order->finished_at)
@endif

{{ __('admin.order_details') }}

@if ($orderProducts = $order->orderProducts()->with('product')->get())
{{-- table content --}} @foreach ($orderProducts as $orderProduct) @endforeach
{{ __('admin.product') }} {{ __('admin.quantity') }} {{ __('admin.price') }} {{ __('admin.total') }}
{{ $orderProduct->product->name ?? '----' }} {{ $orderProduct->quantity ?? '----' }} {{ $orderProduct->price ?? '----' }} {{ $orderProduct->total ?? '----' }}
{{-- table content --}} {{-- no data found div --}} @if ($orderProducts->count() == 0)
{{ __('admin.there_are_no_matches_matching') }}
@endif {{-- no data found div --}}
@endif @if ($orderServices = $order->orderServices()->with('service',"size")->get())
{{-- table content --}} @foreach ($orderServices as $orderService) @endforeach
{{ __('admin.service') }} {{ __('admin.size') }} {{ __('admin.price') }}
{{ $orderService->service->name ?? '----' }} {{ $orderService->size->name ?? '----' }} {{ $orderService->price ?? '----' }}
{{-- table content --}} {{-- no data found div --}} @if ($orderServices->count() == 0)
{{ __('admin.there_are_no_matches_matching') }}
@endif {{-- no data found div --}}
@endif
@endsection