@extends('layouts.admin') @section('title', 'Product | Mintavia Admin') @section('content')
@if (isset($message) && $message) @switch($message['status']) @case('success') @break @case('error') @break @endswitch @endif

Purchase Register Item

@php $total_qty = $total_free = $total_basic_amt = $total_dis_amt = $total_tax_amt = $total_net_amount = 0; @endphp @if (!empty($billItems) && !empty($bill)) @foreach ($billItems as $item) @php $total_qty += $item->qty ?? 0; $total_free += $item->free ?? 0; $total_basic_amt += $item->basic_amt ?? 0; $total_dis_amt += $item->dis_amt ?? 0; $total_tax_amt += $item->tax_amt ?? 0; $total_net_amount += $item->net_amount ?? 0; @endphp {{-- Account Name --}} @endforeach {{-- ✅ Total Row --}} {{-- Rate ka total nahi hota --}} {{-- Discount Percentage ka total nahi hota --}} {{-- Tax Percentage ka total nahi hota --}} @else @endif
Date Date On As Own Bill No Bill No. Party Product Name Part No Qty Free Rate Basic Amt Dis Per Dis Amt Tax Per Tax Amt Net Amount
{{ $bill->date ?? '--' }} {{ $bill->modal_date ?? '--' }} {{ $bill->modal_bill ?? '--' }} {{ $bill->bill_no ?? '--' }} {{ $bill->account->name ?? '--' }}{{ !empty($item->product) ? $item->product->product_name : '--' }} {{ $item->product_part_no ?? '--' }} {{ $item->qty ?? 0 }} {{ $item->free ?? 0 }} {{ $item->rate ?? 0 }} {{ $item->basic_amt ?? 0 }} {{ $item->dis_per ?? 0 }} {{ $item->dis_amt ?? 0 }} {{ $item->tax_per ?? 0 }} {{ $item->tax_amt ?? 0 }} {{ $item->net_amount ?? 0 }}
Total: {{ $total_qty }} {{ $total_free }} -{{ $total_basic_amt }} -{{ $total_dis_amt }} -{{ $total_tax_amt }} {{ $total_net_amount }}
No records found
@endsection @section('js') @endsection