| Item Name |
Unit |
Selling Price(Excluding) |
Old Gst |
Old Cess |
Selling Price(Including) |
New Gst |
New Cess |
@foreach ($stockItems as $stockItem )
@foreach($stockItem->itemUnits as $itemUnit)
| {{ $stockItem->name }} |
{{ $itemUnit->unit->name }} |
{{ $itemUnit->unit_selling_price }} |
@php
$business_open_date = Auth::user()->company_profile->business_opening;
$oldGst = $stockItem->getGst($business_open_date);
$oldCess = $stockItem->getCess($business_open_date);
$totalTax = $oldGst + $oldCess;
$oldPrice = $itemUnit->unit_selling_price;
$including = $oldPrice + ($oldPrice * ($totalTax / 100));
$including = round($including,3);
@endphp
{{ $oldGst }} |
{{ $oldCess }} |
{{ $including }} |
{{$stockItem->getGst('2025-09-22')}} |
{{$stockItem->getCess('2025-09-22')}} |
@endforeach
@endforeach