{{--
--}} {{-- --}}{{-- هدر صفحه --}} {{-- --}} {{--

--}} {{-- {{ __('تایید حواله‌های انبار') }}--}} {{--

--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--

--}} {{-- حواله‌های در انتظار تایید شما--}} {{--

--}} {{-- @if (session()->has('message'))--}} {{-- --}} {{-- @endif--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @forelse ($transfers as $transfer)--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @empty--}} {{-- --}} {{-- --}} {{-- --}} {{-- @endforelse--}} {{-- --}} {{--
کد حوالهتیم فرستندهتاریخ ارسالعملیات
{{ $transfer->transfer_code }}{{ $transfer->sourceTeam->name }}{{ $transfer->transfer_date }}--}} {{-- تایید دریافت--}} {{-- رد کردن--}} {{--
--}} {{-- هیچ حواله‌ای برای تایید شما وجود ندارد.--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- تایید دریافت و جانمایی حواله ({{ $viewingTransfer?->transfer_code }})--}} {{-- --}} {{-- --}} {{--
--}} {{--

لطفاً برای هر آیتم دریافتی، مکان و نحوه جانمایی را مشخص کنید.

--}} {{--
--}} {{-- @foreach($itemsToPlace as $index => $item)--}} {{--
--}} {{--

{{ $item['name'] }}

--}} {{--

مقدار دریافتی: {{ $item['quantity'] }} {{ $item['unit'] }}

--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}}{{-- Level 1 --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}}{{-- Level 2 --}} {{-- @if(!empty($item['locations_level_2']))--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- @endif--}} {{-- --}}{{-- Level 3 --}} {{-- @if(!empty($item['locations_level_3']))--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- @endif--}} {{-- --}}{{-- Level 4 --}} {{-- @if(!empty($item['locations_level_4']))--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- @endif--}} {{-- --}}{{-- Level 5 (Box) --}} {{-- @if(!empty($item['locations_level_5']))--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- @endif--}} {{--
--}} {{-- --}} {{-- --}} {{-- @if($item['selectedBox'])--}} {{--
--}} {{--
--}} {{-- نحوه جانمایی--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- @if($item['placement_mode'] === 'manual')--}} {{--
--}} {{--
--}} {{--
--}} {{-- @for ($col = 1; $col <= $item['selectedBox']['columns']; $col++)--}} {{--
{{ $col }}
--}} {{-- @endfor--}} {{-- @for ($row = 0; $row < $item['selectedBox']['rows']; $row++)--}} {{--
{{ chr(65 + $row) }}
--}} {{-- @for ($col = 1; $col <= $item['selectedBox']['columns']; $col++)--}} {{-- @php $position = chr(65 + $row) . $col; @endphp--}} {{-- --}} {{-- @endfor--}} {{-- @endfor--}} {{--
--}} {{-- --}} {{--
--}} {{-- @endif--}} {{--
--}} {{-- @endif--}} {{--
--}} {{--
--}} {{-- @endforeach--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- {{ __('انصراف') }}--}} {{-- --}} {{-- --}} {{-- {{ __('تایید نهایی و افزودن به انبار') }}--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}}
{{-- هدر صفحه --}}

{{ __('تایید حواله‌های انبار') }}

حواله‌های در انتظار تایید شما

@if (session()->has('message')) @endif
@forelse ($transfers as $transfer) @empty @endforelse
کد حواله تیم فرستنده تاریخ ارسال عملیات
{{ $transfer->transfer_code }} {{ $transfer->sourceTeam->name }} {{ $transfer->transfer_date ? verta($transfer->transfer_date)->format('Y/m/d') : '-' }} تایید دریافت رد کردن
هیچ حواله‌ای برای تایید شما وجود ندارد.
تایید دریافت و جانمایی حواله ({{ $viewingTransfer?->transfer_code }})

برای هر آیتم، وضعیت آن را مشخص کرده و در صورت تایید، محل جانمایی را تعیین کنید.

@foreach($itemsToPlace as $index => $item)

{{ $item['name'] }}

مقدار دریافتی: {{ $item['quantity'] }} {{ $item['unit'] }}

{{-- دکمه‌های جدید برای تایید/رد هر آیتم --}}
{{-- فرم جانمایی فقط در صورت تایید نمایش داده می‌شود --}} @if($item['status'] === 'accepted')
{{-- Level 1 --}}
{{-- Level 2 --}} @if($item['locations_level_2']->isNotEmpty())
@endif {{-- Level 3 --}} @if($item['locations_level_3']->isNotEmpty())
@endif {{-- Level 4 --}} @if($item['locations_level_4']->isNotEmpty())
@endif {{-- Level 5 (Box) --}} @if($item['locations_level_5']->isNotEmpty())
@endif
@if($item['selectedBox'])
نحوه جانمایی
@if($item['placement_mode'] === 'manual')
@for ($col = 1; $col <= $item['selectedBox']->columns; $col++)
{{ $col }}
@endfor @for ($row = 0; $row < $item['selectedBox']->rows; $row++)
{{ chr(65 + $row) }}
@for ($col = 1; $col <= $item['selectedBox']->columns; $col++) @php $position = chr(65 + $row) . $col; @endphp @endfor @endfor
@endif
@endif
@endif
@endforeach
{{ __('انصراف') }} {{ __('تایید نهایی و افزودن به انبار') }}
خطا در جانمایی
{!! $placementErrorMessage !!}
{{ __('متوجه شدم') }}