{{ $loop->iteration }} |
{{ $sell_line->product->name }}
@if( $sell_line->product->type == 'variable')
- {{ $sell_line->variations->product_variation->name ?? ''}}
- {{ $sell_line->variations->name ?? ''}},
@endif
{{ $sell_line->variations->sub_sku ?? ''}}
@php
$brand = $sell_line->product->brand;
@endphp
@if(!empty($brand->name))
, {{$brand->name}}
@endif
@if(!empty($sell_line->sell_line_note))
{{$sell_line->sell_line_note}}
@endif
@if($is_warranty_enabled && !empty($sell_line->warranties->first()) )
{{$sell_line->warranties->first()->display_name ?? ''}} - {{ @format_date($sell_line->warranties->first()->getEndDate($sell->transaction_date))}}
@if(!empty($sell_line->warranties->first()->description))
{{$sell_line->warranties->first()->description ?? ''}}
@endif
@endif
@if(in_array('kitchen', $enabled_modules) && empty($for_ledger))
@lang('restaurant.order_statuses.' . $sell_line->res_line_order_status)
@endif
|
@if( session()->get('business.enable_lot_number') == 1 && empty($for_ledger))
{{ $sell_line->lot_details->lot_number ?? '--' }}
@if( session()->get('business.enable_product_expiry') == 1 && !empty($sell_line->lot_details->exp_date))
({{@format_date($sell_line->lot_details->exp_date)}})
@endif
|
@endif
@if($sell->type == 'sales_order')
{{ $sell_line->quantity - $sell_line->so_quantity_invoiced }} @if(!empty($sell_line->sub_unit)) {{$sell_line->sub_unit->short_name}} @else {{$sell_line->product->unit->short_name}} @endif |
@endif
@if(!empty($for_ledger))
{{@format_quantity($sell_line->quantity)}}
@else
{{ $sell_line->quantity }}
@endif
@if(!empty($sell_line->sub_unit)) {{$sell_line->sub_unit->short_name}} @else {{$sell_line->product->unit->short_name}} @endif
@if(!empty($sell_line->product->second_unit) && $sell_line->secondary_unit_quantity != 0)
@if(!empty($for_ledger))
{{@format_quantity($sell_line->secondary_unit_quantity)}}
@else
{{ $sell_line->secondary_unit_quantity }}
@endif
{{$sell_line->product->second_unit->short_name}}
@endif
|
@if(!empty($pos_settings['inline_service_staff']))
{{ $sell_line->service_staff->user_full_name ?? '' }}
|
@endif
@if(!empty($for_ledger))
@format_currency($sell_line->unit_price_before_discount)
@else
{{ $sell_line->unit_price_before_discount }}
@endif
|
@if(!empty($for_ledger))
@format_currency($sell_line->get_discount_amount())
@else
{{ $sell_line->get_discount_amount() }}
@endif
@if($sell_line->line_discount_type == 'percentage') ({{$sell_line->line_discount_amount}}%) @endif
|
@if(!empty($for_ledger))
@format_currency($sell_line->item_tax)
@else
{{ $sell_line->item_tax }}
@endif
@if(!empty($taxes[$sell_line->tax_id]))
( {{ $taxes[$sell_line->tax_id]}} )
@endif
|
@if(!empty($for_ledger))
@format_currency($sell_line->unit_price_inc_tax)
@else
{{ $sell_line->unit_price_inc_tax }}
@endif
|
@if(!empty($for_ledger))
@format_currency($sell_line->quantity * $sell_line->unit_price_inc_tax)
@else
{{ $sell_line->quantity * $sell_line->unit_price_inc_tax }}
@endif
|
@if(!empty($sell_line->modifiers))
@foreach($sell_line->modifiers as $modifier)
|
{{ $modifier->product->name }} - {{ $modifier->variations->name ?? ''}},
{{ $modifier->variations->sub_sku ?? ''}}
|
@if( session()->get('business.enable_lot_number') == 1)
|
@endif
{{ $modifier->quantity }} |
@if(!empty($pos_settings['inline_service_staff']))
|
@endif
@if(!empty($for_ledger))
@format_currency($modifier->unit_price)
@else
{{ $modifier->unit_price }}
@endif
|
|
@if(!empty($for_ledger))
@format_currency($modifier->item_tax)
@else
{{ $modifier->item_tax }}
@endif
@if(!empty($taxes[$modifier->tax_id]))
( {{ $taxes[$modifier->tax_id]}} )
@endif
|
@if(!empty($for_ledger))
@format_currency($modifier->unit_price_inc_tax)
@else
{{ $modifier->unit_price_inc_tax }}
@endif
|
@if(!empty($for_ledger))
@format_currency($modifier->quantity * $modifier->unit_price_inc_tax)
@else
{{ $modifier->quantity * $modifier->unit_price_inc_tax }}
@endif
|
@endforeach
@endif
@endforeach