@foreach($product as $p)
|
{{$xx}} |
{{$p->productName}}
|
@if($purchase->user_role<=4)
|
{{$p->compareAtPrice}} |
{{$p->costPerItem}} |
{{$p->price}} |
{{$p->base_pack_code}} |
{{$p->sku_code}}
@if($data ?? '')
@php
$pkd_month=substr($p->pkd,0,2);
$pkd_year=substr($p->pkd,2,2);
$pkd=$pkd_year."-".$pkd_month."-01";
echo date("my", strtotime("+".$p->expire_period." month", strtotime($pkd)));
@endphp
@endif
|
1 x {{$p->conf_2nd_unit}} |
{{$p->hsn_code}} |
{{ $p->gst_percentage ?? 0 }}% |
{{$p->visible_stock}} |
{{$p->taxable_amount}} @php $total_taxable_amount+=$p->taxable_amount; @endphp |
{{$p->cgst}} @php $total_cgst+=$p->cgst; @endphp |
{{$p->sgst}} @php $total_sgst+=$p->sgst; @endphp |
{{$p->total_price}} @php $total_total+=$p->total_price; @endphp |
@endif
@if($purchase->user_role==7)
{{$p->base_pack_code}} |
{{$p->conf_2nd_unit}} {{ $unit[$p->secondary_unit] }} = 1 {{ $unit[$p->primary_unit] }} |
{{$p->current_stock}} |
{{$p->lower_limit}} |
{{$p->norm}} |
{{$p->upper_limit}} |
{{ number_format($p->compareAtPrice,2) }} |
{{$p->visible_stock}} |
@endif
@php $xx++; @endphp
@endforeach
@if($purchase->user_role<=4)
| Total |
{{ number_format($total_taxable_amount,2)}} |
{{number_format($total_cgst,2)}} |
{{number_format($total_sgst,2)}} |
{{number_format($total_total,2)}} |
@endif
@if($purchase->user_role<=4)
|
Taxable Value |
Central Tax |
State Tax |
Total |
|
Rate |
Amount |
Rate |
Amount |
Tax Amount |
@php
$total_available_amount=0;
$total_available_tax_amount=0;
@endphp
@foreach($available_amount as $k=>$a)
|
{{number_format($a-$available_tax_val[$k],2)}} |
{{$slabs[$k]/2}}% |
{{ number_format($available_tax_val[$k]/2,2)}} |
{{$slabs[$k]/2}}% |
{{number_format($available_tax_val[$k]/2,2)}} |
{{number_format($available_tax_val[$k],2)}} |
@endforeach
@endif
@if($purchase->user_role<=4)
| Total |
{{number_format($total_available_amount-$total_available_tax_amount,2)}} |
|
{{number_format($total_available_tax_amount/2,2)}} |
|
{{number_format($total_available_tax_amount/2,2)}} |
{{number_format($total_available_tax_amount,2)}} |
@endif