@extends('layouts.admin-simple') @section('title', 'Incoming Operation Details') @section('breadcrumb') @endsection @section('page-title')

Operation #{{ $operation->operation_number }}

{{ $operation->operation_type_label }} - {{ $operation->status }}

arrow_back Back to List @if($operation->status !== 'completed') edit Edit @endif
@endsection @section('content')
info Operation Details
@if($operation->supplier) @endif @if($operation->operation_type === 'site_return' && $operation->materialRequest) @endif
Operation Number: {{ $operation->operation_number }}
Operation Type: {{ $operation->operation_type_label }}
Operation Date: {{ $operation->operation_date->format('d M, Y') }}
Status: {{ ucfirst($operation->status) }}
Supplier: {{ $operation->supplier->name }}
MR Reference: {{ $operation->materialRequest->material_request_number ?: 'MR-' . str_pad($operation->material_request_id, 6, '0', STR_PAD_LEFT) }}
@if($operation->delivery_file) @endif
Division: {{ $operation->division }}
Delivery Document: attachment View Uploaded File
@if($operation->notes)
Notes:

{{ $operation->notes }}

@endif
inventory Items ({{ $operation->items->count() }})
@forelse($operation->items as $item) @empty @endforelse
Item Quantity Batch Production Date Expiry Date Quality Status
{{ $item->item->item_description ?? 'Unknown Item' }}
{{ $item->item->item_code ?? 'NO-CODE' }}
{{ number_format($item->quantity_delivered, 2) }} {{ $item->item->unit_of_measure ?? 'units' }} {{ $item->batch_number ?: '-' }} {{ $item->production_date ? $item->production_date->format('d M, Y') : '-' }} {{ $item->expiry_date ? $item->expiry_date->format('d M, Y') : '-' }} {{ ucfirst($item->quality_status) }}
No items found
person Receiving Information
Received By: {{ $operation->receiver->name ?? 'Unknown' }}
Received By Name: {{ $operation->received_by_name ?: '-' }}
Created At: {{ $operation->created_at->format('d M, Y H:i') }}
@if($operation->lpo_number) @endif @if($operation->currency !== 'AED') @endif
Total Amount:
{{ number_format($operation->total_amount_aed ?? 0, 2) }} @if($operation->currency !== 'AED')
{{ $operation->currency }} {{ number_format($operation->total_amount ?? 0, 2) }} @endif
LPO Number: {{ $operation->lpo_number }}
Currency: {{ $operation->currency }} (Rate: {{ number_format($operation->exchange_rate, 4) }})
@if($operation->lpo_number) @if($operation->delivery_note_number) @endif
LPO Number: {{ $operation->lpo_number }}
Delivery Note: {{ $operation->delivery_note_number }}
@endif
@endsection @push('styles') @endpush