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

{{-- --}} @if (env('APP_SC') == 'yes') @else @endif @php $sl = 1; $purchaseItem = App\Models\PurchaseItem::where( 'purchase_id', $purchase->id, )->get(); @endphp @foreach ($purchaseItem as $key => $item) @php $product_variation = App\Models\ProductVariation::where( 'product_id', $item->product_id, )->get(); // dd($item); @endphp @if (env('APP_SC') == 'yes') @else @endif @endforeach {{-- Discount --}} {{-- Total Amount --}} {{-- Payment Method --}} {{-- Paid Amount --}} {{-- Due Amount in --}}
SlProductSize - ColorRate Quantity Total Action
{{-- Product Name --}} {{ $item->product?->name }} - {{ $item->product?->barcode }} @if ($item->product_variation_id != null) @else @endif
@if ($item->product->unit->related_unit == null) @else {{-- HAS SUB UNIT --}} @endif
{{-- {{ $item->subtotal }} {{ empty(get_setting('com_currency')) ?: get_setting('com_currency') }} --}}
Grand Total
Discount
Payable Amount
Bank Account
Paid Amount
Due Amount
@endsection @push('js') @endpush