@extends('admin.layouts.master-soyuz') @section('title', __('View Order :order |', ['order' => $order->order_id])) @section('body') @component('admin.component.breadcumb',['secondaryactive' => 'active']) @slot('heading'){{ __('Inhouse Orders') }}@endslot @slot('menu1'){{ __('View Order') }}@endslot @slot('button')
@endslot @endcomponent @php $statusMap = [ 'processed' => ['bg' => '#dcfce7', 'fg' => '#16a34a', 'icon' => 'check-circle'], 'pending' => ['bg' => '#fef3c7', 'fg' => '#d97706', 'icon' => 'clock'], 'cancelled' => ['bg' => '#fee2e2', 'fg' => '#dc2626', 'icon' => 'x-circle'], 'shipped' => ['bg' => '#dbeafe', 'fg' => '#2952d3', 'icon' => 'truck'], 'delivered' => ['bg' => '#dcfce7', 'fg' => '#16a34a', 'icon' => 'check-circle'], ]; $st = $statusMap[$order->order_status] ?? ['bg' => '#f1f5f9', 'fg' => '#475569', 'icon' => 'circle']; $sym = ''; $sameState = optional($store->state)->id == optional($order->states)->id; @endphp| # | {{ __('Product') }} | {{ __('Price') }} | {{ __('Qty') }} | {{ __('Tax') }} | {{ __('Subtotal') }} |
|---|---|---|---|---|---|
| {{ $key+1 }} |
{{ $item['product_name'] }}
@if(!empty($item['origin']) && $item['origin'] !== '-')
{{ __('Origin') }}: {{ $item['origin'] }}
@endif
|
{!! $sym !!} {{ sprintf('%.2f', $item['product_price']) }} | ×{{ $item['product_qty'] }} | {!! $sym !!} {{ sprintf('%.2f', $item['product_tax']) }} | {!! $sym !!} {{ sprintf('%.2f', $item['product_total']) }} |
| {{ __('No items in this order') }} | |||||