@extends('layouts.admin-simple') @section('title', 'Create Site Return') @push('styles') @endpush @section('content')

keyboard_return Create Site Return

Original Delivery Information

Delivery #: {{ $directDelivery->delivery_number }}

Reference #: {{ $directDelivery->reference_number }}

Supplier: @if($directDelivery->supplier) {{ $directDelivery->supplier->name }} @else Pending Supplier Selection @endif

Project: {{ $directDelivery->project->project_name }}

Delivery Date: {{ $directDelivery->delivery_date->format('M d, Y') }}

Status: {{ ucfirst(str_replace('_', ' ', $directDelivery->status)) }}

Return Instructions
  • Select items to return from delivered items
  • Specify return quantity (cannot exceed delivered quantity)
  • Indicate condition of returned items
  • Provide return reason for each item
  • Returns will be processed as incoming operations
@csrf
@error('return_date')
{{ $message }}
@enderror
@error('return_reason')
{{ $message }}
@enderror
Mark delivery as fully returned (prevents future returns)
@error('return_notes')
{{ $message }}
@enderror
assignment_return Items Available for Return ({{ $returnableItems->count() }})
@if($returnableItems->count() > 0)
@foreach($returnableItems as $index => $item) @endforeach
Select Item Delivered Available Return Qty Condition Return Reason Notes
{{ $item->item->item_description }} @if($item->item->item_code)
{{ $item->item->item_code }} @endif @if($item->batch_number)
Batch: {{ $item->batch_number }} @endif @if($item->expiry_date)
Exp: {{ $item->expiry_date->format('M d, Y') }} @endif
{{ number_format($item->received_quantity, 2) }} @if($item->unit_of_measure)
{{ $item->unit_of_measure }} @endif
{{ number_format($item->getAvailableForReturnQuantity(), 2) }}
{{ $item->return_status }}
@error("items.{$index}.return_quantity")
{{ $message }}
@enderror
@error("items.{$index}.condition")
{{ $message }}
@enderror
@error("items.{$index}.return_reason")
{{ $message }}
@enderror
@error("items.{$index}.return_notes")
{{ $message }}
@enderror
@else
warning No items are available for return. All delivered items may have already been returned or are not eligible for return.
@endif
@endsection @push('scripts') @endpush