@php $branding_product = 0; @endphp @foreach($items as $item_index => $item)
@if($item->is_printing_product == 1) @if($item->is_in_sq_m == 1) @else @endif @else @endif @if($item->is_printing_product == 1) @php $variants = DB::table('order_item_printing')->whereNull('deleted_at')->where('order_item_id', $item->id)->get(); @endphp @foreach($variants as $variant_index => $var) @if($var->is_in_sq_m == 1) @else @endif @endforeach @else @php $variants = DB::table('order_item_variants')->where('order_item_id', $item->id)->whereNull('deleted_at')->get(); @endphp @foreach($variants as $variant_index => $var) @endforeach @endif
Length x Width Area m2 Quantity Price Total
Variant(s) Setup Cost Quantity Price Total
Colour Size Quantity Price Total
{{ $var->print_length }} m x {{ $var->print_width }} m {{ $var->total_sq_m }} m2 {{ Helper::displayStocks($var->qty) }} {{ Helper::showCurrencyFormats($var->price) }} {{ Helper::showCurrencyFormats($var->total_price) }}
{{ $var->no_of_colors }} {{ Helper::showCurrencyFormats($var->setup_cost) }} {{ Helper::displayStocks($var->qty) }} {{ Helper::showCurrencyFormats($var->price) }} {{ Helper::showCurrencyFormats($var->total_price) }}
@if(!empty($var->color_name)) {{ $var->color_name }} @else N/A @endif @if(!empty($var->size)) {{ $var->size }} @else N/A @endif {{ Helper::displayStocks($var->qty) }} {{ Helper::showCurrencyFormats($var->price) }} {{ Helper::showCurrencyFormats($var->total_price) }}
@php $brandings = DB::table('order_item_brandings')->where('order_item_id', $item->id)->whereNull('deleted_at')->get(); @endphp @if(!$brandings->isEmpty()) @php $branding_product = 1; @endphp
@foreach($brandings as $index => $branding) @endforeach
Position Method Colors Setup Qty Price Total
{{ $branding->position_name }} {{ $branding->branding_method }} @if(isset($branding->no_of_colors) && $branding->no_of_colors > 0) {{ $branding->no_of_colors }} @else N/A @endif {{ Helper::showCurrencyFormats($branding->setup_price) }} @if(!empty($branding->dye_charge) && $branding->dye_charge > 0)
Dye Charges: {{ Helper::showCurrencyFormats($branding->dye_charge) }} @endif
{{ Helper::displayStocks($branding->qty) }} {{ Helper::showCurrencyFormats($branding->branding_price) }} {{ Helper::showCurrencyFormats($branding->total_branding_price + $branding->setup_price + $branding->dye_charge) }}
@endif @endforeach

Product Total (Incl. VAT): {{ Helper::showCurrencyFormats($order->product_total) }}

@if($branding_product == 1)

Branding (Incl. VAT): {{ Helper::showCurrencyFormats($order->branding_total) }}

Setup (Incl. VAT): {{ Helper::showCurrencyFormats($order->setup_total) }}

@if(!empty($order->dye_charge_total) && $order->dye_charge_total > 0)

Dye Charges (Incl. VAT): {{ Helper::showCurrencyFormats($order->dye_charge_total) }}

@endif @endif

Shipping Price: {{ Helper::showCurrencyFormats($order->shipping_price) }}

@if(config('uba.permissions.incl_vat_system'))

Total VAT: {{ Helper::showCurrencyFormats($order->total_vat) }}

@endif

Grand Total: {{ Helper::showCurrencyFormats($order->grand_total) }}