{{-- Left Side: Stock Adjustment Details --}}

Stock Adjustment Details

@if (Auth::user()->hasPermission('stock.adjustment.edit')) @endif

Adjustment No:

{{ $stock->adjustment_no ?? '-' }}

Total Products:

{{ $stock->details->count() ?? 0 }}

Adjustment Date:

{{ $stock->date ? \Carbon\Carbon::parse($stock->date)->format('d-m-Y') : 'N/A' }}

Total Price:

${{ number_format($stock->total_price ?? 0, 2) }}

{{--

Created Date:

{{ $stock->created_at ? $stock->created_at->format('d-m-Y H:i A') : '-' }}

Total Items:

{{ $stock->total_item ?? 0 }}

--}}

Remark:

{{ $stock->remark ?? '-' }}

Product Detail

@if (($stock->details ?? collect())->isNotEmpty())
@php $rowIndex = 1; @endphp @foreach ($stockDetails as $detail) @endforeach
# Name Available Qty Adjust Qty New Stock Qty Price Remark
{{ $rowIndex++ }}
{{ $detail->product->name ?? '-' }}
Category: {{ $detail->product->categories->first()->name ?? '-' }} | SKU: {{ $detail->product->sku ?? '-' }} | Price: ${{ number_format($detail->price, 2) }}
{{ number_format($detail->available_qty ?? 0, 0) }} {{ $detail->adjust_qty > 0 ? '+' : '' }}{{ number_format($detail->adjust_qty ?? 0, 0) }} {{ number_format($detail->new_modify_qty ?? 0, 0) }} ${{ number_format($detail->price, 2) }} {{ $detail->remark ? wordwrap($detail->remark, 80, "\n", true) : '-' }}
@else

No related products found.

@endif