@lang('admin.order_information')

@lang('admin.order_id')
@lang('admin.order_date')
@lang('admin.customer')
@lang('admin.status') status == 1 ? "bg-warning text-dark" :"bg-success text-dark") }}" value="{{ $order->status == 0 ? __('admin.new_order') : ($order->status == 1 ? __('admin.partial_billed') : __('admin.finished')) }}" disabled />
@lang('admin.total_invoice') @lang('admin.tax_per') @lang('admin.total_invoice_tax')
@lang('admin.invoiced') {{ $order->order_history->sum('total') }} {{ $order->order_history->sum('tax') }} {{ $order->order_history->sum('total_tax') }}
@lang('admin.remaining') {{ $order->order_details->sum('total') }} {{ $order->order_details->sum('tax') }} {{ $order->order_details->sum('total_tax') }}
@lang('admin.total') {{ $order->order_details->sum('total') + $order->order_history->sum('total') }} {{ $order->order_details->sum('tax') + $order->order_history->sum('tax') }} {{ $order->order_details->sum('total_tax') + $order->order_history->sum('total_tax') }}

@lang('admin.order_items')

@foreach ($order->order_details as $details) @endforeach
# @Lang('admin.store_id') @Lang('admin.items_id') @Lang('admin.qty') @Lang('admin.units_id') @Lang('admin.sale_rate') @Lang('admin.total') @Lang('admin.tax_per') @Lang('admin.total_tax')
{{ $loop->iteration }} {{ $details->store->{'store_name_' . app()->getLocale()} }} {{ $details->store_items->item->{'item_name_' . app()->getLocale()} }} {{ $details->qty }} {{ $details->unit->{'unit_name_' . app()->getLocale()} }} {{ $details->rate }} {{ $details->total }} {{ $details->tax }} {{ $details->total_tax }}

@lang('admin.Sale_invoices')

@foreach ($order->order_history as $history) @endforeach
# @Lang('admin.fatoorah_id') @Lang('admin.store_id') @Lang('admin.items_id') @Lang('admin.qty') @Lang('admin.units_id') @Lang('admin.sale_rate') @Lang('admin.total') @Lang('admin.tax_per') @Lang('admin.total_tax')
{{ $loop->iteration }} {{ $history->sale_invoice_id }} {{ $history->store->{'store_name_' . app()->getLocale()} }} {{ $history->store_items->item->{'item_name_' . app()->getLocale()} }} {{ $history->qty }} {{ $history->unit->{'unit_name_' . app()->getLocale()} }} {{ $history->rate }} {{ $history->total }} {{ $history->tax }} {{ $history->total_tax }}
{!! $order->note !!}