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

@if(isset($returnflag) && $returnflag==1) Return @else Purchase @endif @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      

  Order through JETMART INDIA

   jetmartindia@gmail.com


  Seller Details
Ship From @if($purchase->user_role==7) JETMART INDIA @endif @if($purchase->user_role==6) SUPER STOKIEST @endif @if($purchase->user_role==5) JETMART INDIA @endif
Ship from Address KENDRAPARA
GST No / Pan No {{ Auth::user()->gst_no}} /{{ Auth::user()->pan_no}}
Invoice no {{$purchase->order_no}}
Invoice Date {{ $purchase->purchaseDate}}
Password {{$purchase->stock_password}}
  Buyer Details
Ship to Name {{$retailerdetails->name}}
Ship to Address {{$retailerdetails->address}}
GST No / Pan No {{$retailerdetails->gst_no}} / {{$retailerdetails->pan_no}}
Order Date {{$purchase->purchaseDate}}
Order No {{$purchase->invoiceNo}}
@php $total_taxable_amount=0; $total_cgst=0; $total_sgst=0; $total_total=0; @endphp @php $i=1; @endphp @foreach($product as $p) @if($p->currentStock>0) {{-- --}} @php $i++ @endphp @endif @endforeach @php $total_available_amount=0; $total_available_tax_amount=0; @endphp @foreach($available_amount as $k=>$a) @endforeach
Sl no SKU Code BPC Item MRP P Rate Our Price Configuration HSN Quantity Taxable Amount CGST SGST Total Price
{{$i}} {{$p->sku_code}} @if($data ?? '') @php $pkd_month=substr($p->new_pkd,0,2); $pkd_year=substr($p->new_pkd,2,2); $pkd=$pkd_year."-".$pkd_month."-01"; echo date("my", strtotime("+".$p->expire_period." month", strtotime($pkd))); @endphp @endif {{$p->base_pack_code}} {{$p->productName}} {{$p->compareAtPrice}} {{$p->costPerItem}}{{$p->new_pkd}}{{$p->price}} 1 x {{$p->conf_2nd_unit}} {{$p->hsn_code}} {{-- {{$p->visible_stock}} === {{$p->conf_2nd_unit}} --}} @php $primary = 0; $secondary = $p->currentStock; if(!empty($p->conf_2nd_unit) && $p->conf_2nd_unit > 0){ $primary = floor($p->currentStock / $p->conf_2nd_unit); $secondary = $p->currentStock % $p->conf_2nd_unit; } @endphp {{ $primary }} {{ $unit[$p->primary_unit] ?? '' }} {{ $secondary }} {{ $unit[$p->secondary_unit] ?? '' }} @php $total=@$p->costPerItem*$p->currentStock; @endphp @php $tax=round($total-($total*(100/(100+$p->gst_percentage))),2) @endphp {{$total-$tax}} @php $total_taxable_amount+=($total-$tax); @endphp {{ number_format($tax/2,2) }} @php $total_cgst+=$tax/2; @endphp {{ number_format($tax/2,2) }} @php $total_sgst+=$tax/2; @endphp {{$total }} @php $total_total+=$total; @endphp
Total {{ number_format($total_taxable_amount,2)}} {{number_format($total_cgst,2)}} {{number_format($total_sgst,2)}} {{number_format(round($total_total),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