@if(!empty($receipt_details->display_name))

{{$receipt_details->display_name}}

@endif @if(!empty($receipt_details->address))

{!! $receipt_details->address !!}

@endif
TEL: 6255 3721
FAX: 6255 3772
{{--
logo
--}}

{{$receipt_details->invoice_heading}}

AC NO: {{$receipt_details->invoice_no}}

Bill to: Delivery Address: Collection Method: Date:
Name: {{$receipt_details->customer_name}} - - {{$receipt_details->invoice_date}}
HP: 9857 3171
Address: {{str_replace('
', '', $receipt_details->customer_info_address)}}
Sales Order no :
-
Partner Information: Sales person: Delivery order no :
Name: Alloysius HP: 8608 0806 ID Firm: Interior Genesis
{{$receipt_details->sales_person}} -
@foreach ($ar as $category => $items) @foreach ($items as $tag => $item) @foreach ($item as $product_item) @php $product_item = json_decode(json_encode($product_item), true); // if(!$product_item['tag_discount'] && !$product_item['tag_discount_type']) { // if(!$product_item['overall_discount'] && !$product_item['overall_discount_type']) { // $total = $total + $product_item['tag_price']*$product_item['tag_quantity']; // $grand_total = $total; // }else { // $total = $total + $product_item['tag_price']*$product_item['tag_quantity']; // $grand_total = $total; // $overall_discount = $product_item['overall_discount']; // $overall_discount_type = $product_item['overall_discount_type']; // } // }else { // $total = $total + $product_item['tag_price']*$product_item['tag_quantity']; // $grand_total = $total; // } if($product_item['tag_discount'] && $product_item['tag_discount_type']) { $total = $total + $product_item['tag_price']*$product_item['tag_quantity']; $grand_total = $total; }else { $total = $total + $product_item['tag_price']*$product_item['tag_quantity']; $grand_total = $total; if($product_item['overall_discount'] && $product_item['overall_discount_type']) { $total_overall = $total_overall + $product_item['tag_price']*$product_item['tag_quantity']; $overall_discount_type = $product_item['overall_discount_type']; $overall_discount = $product_item['overall_discount']; } } @endphp @endforeach @endforeach @endforeach @php if($overall_discount_type == "fixed" && $overall_discount) { //$discounted_item_total = $total_overall - $overall_discount; $grand_total = $total - $overall_discount; $discount = $overall_discount; }else { $discount_percentage_amount = ($total_overall * $overall_discount)/100; $grand_total = $total - $discount_percentage_amount; $discount = $discount_percentage_amount; } $gstAmount = ($grand_total * 8)/100; $grand_total = $grand_total + $gstAmount; @endphp
Description Area Qty Amount
{{$product_item['product_name']}} {{$product_item['tname']}} {{$product_item['tag_quantity']}} {{round($product_item['tag_price'],2)}}