@extends('layouts.printnestoGST')
@section('pageSize','A4')
@section('content')
@foreach($company as $com => $c)
@endforeach
@foreach($data as $k => $v)
@php
$slno = 1
@endphp
@php
$stringvalue =$v['customer_details']['address'];
$str_arr = explode (",", $stringvalue);
$result = count($str_arr);
@endphp
Customer : {{$v['customer_details']['name']}}
Invoice No : {{$v['bill_no']}}
@for ($i = 0; $i < $result; $i++)
{{$str_arr[$i]}}
@endfor
Invoice Date : {{$v['bill_date']}}
GSTIN : {{$v['customer_details']['gstin']}}
Payment Mode : {{$v['payment_mode']}}
Referrals Name : {{$v['referalls']['name']}}
Sl.No
Description
HSN No
Unit
Qty
Rate
Tax%
Total
@foreach($v['sold_items'] as $vv)
@php
echo $slno
@endphp
{{$vv['item_details']['name']}}
{{$vv['item_details']['hsn_no']}}
@if($vv['package_id'])
{{$vv['package_details']['measuring_unit']}}/{{$vv['package_details']['no_of_qty']}}
@else
{{$vv['mesuring_details']['name']}}
@endif
{{$vv['quantity']}}
{{$vv['price_per_quantity']}}
{{$vv['tax_details']['tax']}}
{{$vv['total']}}
@php
$slno++
@endphp
@endforeach
TAX %
TAXABLE
SGST
CGST
IGST
@php
$taxable = $v['net_total'] -$v['tax'];
@endphp
@if($v['tax_zeros']['taxable'])
{{$v['tax_zeros']['tax']}}
{{$v['tax_zeros']['taxable']}}
{{$v['tax_zeros']['sgst']}}
{{$v['tax_zeros']['cgst']}}
{{$v['tax_zeros']['igst']}}
@endif
@if($v['tax_fives']['taxable'])
{{$v['tax_fives']['tax']}}
{{$v['tax_fives']['taxable']}}
{{$v['tax_fives']['sgst']}}
{{$v['tax_fives']['cgst']}}
{{$v['tax_fives']['igst']}}
@endif
@if($v['tax_twelves']['taxable'])
{{$v['tax_twelves']['tax']}}
{{$v['tax_twelves']['taxable']}}
{{$v['tax_twelves']['sgst']}}
{{$v['tax_twelves']['cgst']}}
{{$v['tax_twelves']['igst']}}
@endif
@if($v['tax_eighteens']['taxable'])
{{$v['tax_eighteens']['tax']}}
{{$v['tax_eighteens']['taxable']}}
{{$v['tax_eighteens']['sgst']}}
{{$v['tax_eighteens']['cgst']}}
{{$v['tax_eighteens']['igst']}}
@endif
@if($v['tax_twentyeights']['taxable'])
{{$v['tax_twentyeights']['tax']}}
{{$v['tax_twentyeights']['taxable']}}
{{$v['tax_twentyeights']['sgst']}}
{{$v['tax_twentyeights']['cgst']}}
{{$v['tax_twentyeights']['igst']}}
@endif
@endforeach