@extends('admin.layouts.master') @section('title', 'Stock') @section('content')
@if($counttoday_request>0 && Auth::user()->role==7) @endif
@include('admin.includes.msg')

Purchase @if(Auth::user()->role<=4) @if(isset($purchase) && $purchase->status==0) Approve       @endif @else @if($purchase->is_draft==1) Send to C&F       @endif @endif Print      

@if(Auth::user()->role<=4)
Party
@endif
Order No. {{$purchase->invoiceNo}}
Order Date {{$purchase->purchaseDate}}
@php $total_taxable_amount=0; $total_cgst=0; $total_sgst=0; $total_total=0; $xx=1; @endphp @if($purchase->user_role<=4) @endif @if($purchase->user_role==7) @endif @foreach($product as $p) @if($purchase->user_role<=4) @endif @if($purchase->user_role==7) @endif @php $xx++; @endphp @endforeach @if($purchase->user_role<=4) @endif @if($purchase->user_role<=4) @php $total_available_amount=0; $total_available_tax_amount=0; @endphp @foreach($available_amount as $k=>$a) @endforeach @endif @if($purchase->user_role<=4) @endif
# # ProductStock MRP Purchase Rate Price Base Pack Code SKU Code Configuration HSN GST% Quantity Taxable Amount CGST SGST Total Price*Backpack Code Configuration Current Stock Lower Limit Norm Upper Limit MRP Quantity
{{$xx}} {{$p->productName}} {{$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{{$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}}
Total {{ number_format($total_taxable_amount,2)}} {{number_format($total_cgst,2)}} {{number_format($total_sgst,2)}} {{number_format($total_total,2)}}
Taxable
Value
Central Tax State Tax Total
Rate Amount Rate Amount Tax Amount
{{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)}}
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)}}
@endsection