@extends('layout.app') @section('title', __('purchase_edit')) @section('content')
@csrf @method('put')
{{ __('purchase_edit') }} #{{ $purchase->reference_no }}
@foreach ($warehouses as $warehouse) @endforeach
@foreach ($suppliers as $supplier) @endforeach
@error('product_id') {{ $message }} @enderror
@if (feature('barcodes')) @endif @if (feature('product_serial_numbers')) @endif @foreach ($purchase->purchaseProducts as $productPurchase) @if (feature('barcodes')) @endif @if (feature('product_serial_numbers')) @else @endif @endforeach
{{ __('name') }}{{ __('code') }}{{ __('quantity') }} {{ __('batch') }} {{ __('expired_date') }}{{ __('serial_imei_number') }}{{ __('purchase_cost') }} {{ __('tax') }} {{ __('sub_total') }} {{ __('action') }}
{{ substr($productPurchase->product->name, 0, 20) }} {{ $productPurchase->product->code }} product->is_batch ? '' : 'disabled' }}> product->is_batch ? '' : 'disabled' }}> No Serial/IMEI {{ numberFormat($productPurchase->product->cost) }} {{ numberFormat($productPurchase->tax) }} {{ numberFormat($productPurchase->total) }}
@foreach ($taxs as $tax) @endforeach
{{ __('total_item') }}

({{ $purchase->total_qty }})

{{ __('total_product') }}

{{ $purchase->item }}

{{ __('sub_total') }}
{{ $currency->symbol ?? '$' }} {{ $purchase->total_cost }}
{{ __('order_tax') }} {{ $currency->symbol ?? '$' }} {{ $purchase->order_tax_rate ?? '0.00' }}
{{ __('order_discount') }} {{ $currency->symbol ?? '$' }} {{ $purchase->order_discount ?? '0.00' }}
{{ __('shipping_cost') }} {{ $currency->symbol ?? '$' }} {{ $purchase->order_discount ?? '0.00' }}
{{ __('grand_total') }} {{ $currency->symbol ?? '$' }} {{ $purchase->grand_total ?? '0.00' }}
@foreach ($paymentMethods as $paymentMethod) @endforeach
@error('paid_amount') {{ $message }} @enderror
@foreach ($accounts as $account) @endforeach
@endsection @push('scripts') @endpush