@extends('layouts.admin-simple') @section('title', 'Create Incoming Operation') @section('content')

input Create Incoming Operation

{{ ucfirst(str_replace('_', ' ', $operationType)) }} - Construction Materials Management

arrow_back Back to List
@switch($operationType) @case('supplier_delivery') local_shipping @break @case('site_return') assignment_return @break @case('emergency_procurement') warning @break @endswitch
{{ ucfirst(str_replace('_', ' ', $operationType)) }}
@if(in_array($operationType, ['supplier_delivery', 'site_return']))

flash_on Direct Processing: This operation will be automatically processed to inventory upon creation.

@endif

@switch($operationType) @case('supplier_delivery') Record materials delivered from external suppliers with quality control @break @case('site_return') Process materials returned from construction sites @break @case('emergency_procurement') Fast-track urgent material procurement @break @endswitch

{{ strtoupper($operationType) }}
@csrf
info Basic Information
@error('operation_date')
{{ $message }}
@enderror
@error('division')
{{ $message }}
@enderror
@if($operationType === 'supplier_delivery')
@php $supplierOptions = [['value' => '', 'text' => 'Select Supplier']]; foreach($suppliers as $supplier) { $supplierOptions[] = [ 'value' => $supplier->id, 'text' => $supplier->name ]; } @endphp
@error('lpo_number')
{{ $message }}
@enderror
@error('delivery_note_number')
{{ $message }}
@enderror
@endif
account_balance Currency & Financial
@php $currencyOptions = []; foreach($exchangeRates as $code => $rate) { $displayText = $code; if($code !== 'AED') { $displayText .= ' (' . number_format($rate, 4) . ' د.إ)'; } $currencyOptions[] = [ 'value' => $code, 'text' => $displayText, 'data' => ['rate' => $rate] ]; } @endphp
@error('exchange_rate')
{{ $message }}
@enderror
info UAE VAT (5%) will be automatically calculated.
note Additional Notes
@error('notes')
{{ $message }}
@enderror
account_balance Currency & Financial
@error('currency')
{{ $message }}
@enderror
@error('exchange_rate')
{{ $message }}
@enderror
info UAE VAT (5%) will be automatically calculated.
person Received By
@error('received_by')
{{ $message }}
@enderror
@error('received_by_name')
{{ $message }}
@enderror
note Additional Notes
@error('notes')
{{ $message }}
@enderror
inventory_2 Materials & Items
Item Quantity Unit Price ({{ $exchangeRates ? array_key_first($exchangeRates) : 'د.إ' }}) Total Batch/Serial Production Date Expiry Date Actions
Total Amount: 0.00 د.إ
cancel Cancel
@endsection @push('styles') @endpush @push('scripts') @endpush