@extends('backend.layouts.master') @section('section-title', 'Purchase') @section('page-title', 'Edit Purchase') @section('action-button') Purchase List @endsection @section('content')
@csrf
{{-- Purchase Date --}}
{{-- Purchase No --}}
{{-- supplier invoice no --}}
{{-- Purchase Date --}}
{{-- Note --}}
{{-- Supplier --}}
{{-- --}}

{{-- Product --}}
{{-- --}} @php $purchaseItem = App\Models\PurchaseItem::where( 'purchase_id', $purchase->id, )->get(); $purchase_item = App\Models\PurchaseItem::where( 'purchase_id', $purchase->id, )->first(); // dd($purchaseItem); @endphp @forelse ($purchaseItem as $key => $item) @php $imei = App\Models\SerialNumber::where('status', 1) ->where('purchase_id', $purchase->id) ->where('product_id', $item->product_id) ->get(); @endphp {{-- @dd($item->subtotal) --}} {{-- --}} @empty @endforelse {{-- --}} {{-- Discount --}} {{-- Total Amount --}} {{-- Payment Method --}} {{-- Paid Amount --}} {{-- Due Amount in --}}
#SL Product Rate QtyWarrantySub Total
{{ $key + 1 }} {{ $item->product?->name }} - {{ $item->product?->barcode }}
@if ($item->product->unit->related_unit == null) {{-- @dd($item->product->has_serial == 1) --}} {{-- @if ($item->product->has_serial == 1) @foreach ($imei as $imei) @endforeach @endif --}} @else {{-- HAS SUB UNIT --}} @endif
{{-- --}} {{ $item->subtotal }} {{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{-- --}}
No Invoice Found
Total Qty Grand Total
Discount
Payable Amount
Bank Account
Paid Amount
Due Amount
{{-- Submit & Reset Button --}}
{{-- Add Modal --}}
@csrf
@endsection @push('js') @endpush