@php $isEdit = isset($rawMaterialPurchase); $action = $isEdit ? route('raw-material-purchases.update', $rawMaterialPurchase) : route('raw-material-purchases.store'); $method = $isEdit ? 'PUT' : 'POST'; $title = $isEdit ? 'Edit Raw Material Purchase' : 'Add New Raw Material Purchase'; @endphp

{{ $title }}

@if ($errors->any())

Please fix the following errors:

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @if($isEdit) @method('PUT') @endif
@error('raw_material_id') {{ $message }} @enderror
Click to add Supplier @error('provider_id') {{ $message }} @enderror
@error('purchase_date') {{ $message }} @enderror
@error('invoice_number') {{ $message }} @enderror
@error('quantity') {{ $message }} @enderror
@error('unit_price') {{ $message }} @enderror
@error('notes') {{ $message }} @enderror
Cancel