@extends('layouts.app') @section('title', 'Create New Receiving Shipment') @push('styles') @include('wuser.shipments.partials.receive-form-styles') @endpush @section('content')

Create receiving shipment

Record a package that has arrived at the warehouse.

Back
@if(session('success')) @endif @if($errors->any()) @endif
@csrf
1

Customer

Select the suite number. Customer details appear once a suite is chosen.

@error('suite_number')
{{ $message }}
@enderror
Port of Destination *
Cargo Type *
2

Items

Add each item in this shipment.

@php $oldItems = old('items'); if (!is_array($oldItems) || count($oldItems) === 0) { $oldItems = [[ 'item_name' => '', 'item_description' => '', ]]; } @endphp
@foreach($oldItems as $itemIndex => $item) @endforeach
Item Name * Item Description
@error('items.'.$itemIndex.'.item_name')
{{ $message }}
@enderror
@error('items.'.$itemIndex.'.item_description')
{{ $message }}
@enderror
@error('items')
{{ $message }}
@enderror
3

Sender

Who sent this package. Both fields are optional.

@error('sender_name')
{{ $message }}
@enderror
@error('sender_address')
{{ $message }}
@enderror
4

Package

Declared value is for the whole shipment. Enter USD or INR and the other amount fills in. Size and weight are optional.

@include('wuser.shipments.partials.declared-value-fields')
@error('weight')
{{ $message }}
@enderror
@error('length')
{{ $message }}
@enderror
@error('width')
{{ $message }}
@enderror
@error('height')
{{ $message }}
@enderror
@php $openPhotos = false; if ($errors->any()) { foreach ($errors->keys() as $errorKey) { if (strpos((string) $errorKey, 'photos') === 0) { $openPhotos = true; break; } } } if (!$openPhotos && is_array(old('photos'))) { foreach (old('photos') as $oldPhoto) { if (!is_array($oldPhoto)) { continue; } if (trim((string) ($oldPhoto['photo_name'] ?? '')) !== '' || trim((string) ($oldPhoto['photo_description'] ?? '')) !== '') { $openPhotos = true; break; } } } @endphp
6

Notes

Anything else the team should know about this package.

@error('notes')
{{ $message }}
@enderror
Cancel
@endsection @push('scripts') @include('wuser.shipments.partials.declared-value-script') @endpush @include('admin.measurement-settings.partials.dimensional-weight-modal')