@extends('layouts.admin.base-dashboard') @section('title', 'Edit Purchase Order') @section('content') @include('layouts.admin.include.message')
@csrf @method('PUT')
Edit Purchase Order
{{-- Branch --}}
@error('branch_id')
{{ $message }}
@enderror
{{-- Order Date --}}
@error('order_date')
{{ $message }}
@enderror
{{-- Notes --}}
@error('notes')
{{ $message }}
@enderror
{{-- Items table --}}
@forelse(old('purchaseOrderInput', $so->lines->map(function($line){ return [ 'product_id'=>$line->product_id, 'qty'=>$line->qty, 'price'=>number_format($line->price,0,'.','.'), 'total_amount'=>number_format($line->total_amount,0,'.','.') ]; })->toArray()) as $index => $item) @empty @endforelse
No Product Name Qty Unit Price Total Amount Action
{{ $index + 1 }} @if($index===0) @endif
1

{{-- Sub Total --}}
Sub Total:
{{-- Footer --}}
@endsection @push('script') @endpush