| {{ $loop->iteration }} |
|
{{ $item->product_name }}
{{-- Variant SKU --}}
@if($item->variant)
SKU: {{ $item->variant->sku ?? '-' }}
@endif
{{-- Master catalog --}}
@if($item->product)
CATALOG:
{{ $item->product->master_catalogue_name ?? '-' }}
({{ $item->product->master_catalogue_code ?? '-' }})
@endif
{{-- Curtain Details --}}
@if(!empty($item->curtain_details))
@php
$cd = $item->curtain_details;
$modelName = \App\Models\ProductModel::where('id', $cd['model_id'] ?? null)->value('name');
@endphp
Model: {{ $modelName ?? '-' }}
Size:
{{ $cd['width'] ?? '-' }}
×
{{ $cd['height'] ?? '-' }} cm
Panels: {{ $cd['panels'] ?? '-' }}
Fabric: {{ $cd['fabric_meter'] ?? '-' }} m
Stitch Rate: ₹{{ $cd['stitch_rate'] ?? '-' }}
Stitch Total: ₹{{ $cd['stitch_total'] ?? '-' }}
@endif
@php
$product = $item->product;
$gstPercent = $product->gst_percent ?? 0;
$isInclusive = $product->gst_inclusive ?? 0;
$price = $item->price;
$qty = $item->quantity;
$baseTotal = $price * $qty;
if($gstPercent > 0){
if($isInclusive){
// GST already included in price
$gstAmount = ($baseTotal * $gstPercent) / (100 + $gstPercent);
$taxableAmount = $baseTotal - $gstAmount;
}else{
// GST needs to be added
$gstAmount = ($baseTotal * $gstPercent) / 100;
$taxableAmount = $baseTotal;
$baseTotal += $gstAmount;
}
}else{
$gstAmount = 0;
$taxableAmount = $baseTotal;
}
@endphp
@if($gstPercent > 0)
GST ({{ $gstPercent }}%) :
₹ {{ number_format($gstAmount,2) }}
@endif
|
|
@if(!$isQuotationOrder)
Nos |
{{ $item->quantity }} |
₹ {{ number_format($item->price,2) }} |
@endif
@if(!$isQuotationOrder)
₹ {{ number_format($item->total ?? $item->price,2) }}
@else
₹ {{ number_format($item->calculated_total ?? ($item->price * $item->quantity),2) }}
@endif
|
@endforeach