@extends('dashboard.layouts.app') @section('title', __('Show Order')) @section('page_heading', __('Order Details')) @section('breadcrumb')
{{ __('Source') }}: {{ $order->source }}
{{ __('Created By') }}: {{ $order->createdBy->name ?? 'N/A' }}
{{ __('Assigned To') }}: {{ $order->assignedTo->name ?? 'N/A' }}
{{ __('Invoice Type') }}: {{ $order->invoice_type }}
{{ __('Status') }}: {{ $order->status }}
{{ __('Global Discount') }}: {{ $order->globalGeneralDiscount->name ?? 'None' }}
{{ __('Coupon Code') }}: {{ old('coupon_code') ?? 'None' }}
{{ __('Type') }} | {{ __('Item') }} | {{ __('Quantity') }} | {{ __('Price') }} | {{ __('Discounted Price') }} | {{ __('General Discount') }} |
---|---|---|---|---|---|
{{ $item->item_type }} | @if($item->item_type == 'track' && $item->trackPricing) {{ $item->trackPricing->track->name }} @elseif($item->item_type == 'placement_test' && $item->placementTestPricing) {{ $item->placementTestPricing->placementTest->name }} @else {{ __('N/A') }} @endif | {{ $item->quantity }} | {{ number_format($item->price, 2) }} | {{ number_format($item->discounted_price, 2) }} | {{ $item->generalDiscount->name ?? 'None' }} |
{{ __('Invoice Status') }}: {{ $order->invoice->status }}
{{ __('Due Date') }}: {{ $order->invoice->due_date->format('Y-m-d H:i') }}
{{ __('Total Amount') }}: {{ number_format($order->invoice->total_amount, 2) }}
{{ __('Total Discount') }}: {{ number_format($order->invoice->total_discount, 2) }}
{{ __('Remaining Amount') }}: {{ number_format($order->invoice->remaining_amount, 2) }}
{{ __('View Invoice') }} @endif