@extends('layouts.admin') @section('title', 'Order Details') @section('breadcrumb-item') @endsection @section('content')

Order Details

Back
{{-- --}}
Order ID: {{ $order->id }}
Amount: {{ $order->amount ?? '0' }}
Balance: @if ($order->payments->isNotEmpty()) {{ $order->payments->sortByDesc('created_at')->first()->balance }} @else 0 @endif
Shop: {{ $order->shop->name }}
Employee: {{ $order->employee->name }}
Placed On: {{ $order->created_at->format('d-M-Y') }}
Remarks: {{ $order->remarks }}
Status: {{ $order->statusString }}

{{ csrf_field() }}
@include('includes.partials.error', ['field' => 'status'])
@include('includes.partials.error', ['field' => 'remarks'])
Products:
@forelse($order->products()->orderBy('name', 'ASC')->get() as $product) @empty @endforelse
Image Quantity Sales|Bonus Item Description Pack Size Batch Nos. Price Total Value Discount% Regular|Special Discount Amount GST % GST Net Amount
{{ $product->name }} {{ $product->pivot->quantity }} | {{ $product->pivot->bonus }} {{ $product->name }} {{ $product->size }} - {{ $product->unit_price }} {{ $product->unit_price * $product->pivot->quantity }} {{ $product->discount_percentage }}% {{ $product->pivot->discount * $product->pivot->quantity }} {{ $product->tax_percentage }} {{ $product->pivot->tax * $product->pivot->quantity }} {{ $product->totalAmount }}
No Products Yet
@endsection