@extends('layouts.dashboard') @section('title', $pageTitle) @section('page_header') @endsection @section('page_content') @if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
@if ($transfers->isEmpty())
No warehouse transfers found. Create one to get started.
@else
@foreach ($transfers as $key => $transfer) @endforeach
S.No Transfer No Company From Warehouse To Warehouse Date Items Status Actions
{{ ++$key }} {{ $transfer->transaction_no }} {{ $transfer->company?->name ?? '-' }} {{ $transfer->warehouse?->name ?? '-' }} @php $toWarehouseId = $toWarehouseMap[$transfer->id] ?? null; @endphp {{ $toWarehouseId ? ($warehouseNames[$toWarehouseId] ?? '-') : '-' }} {{ $transfer->date?->format('Y-m-d') ?? '-' }} {{ number_format((float) $transfer->items->sum('quantity'), 2) }} {{ ucfirst($transfer->status) }}
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush