where('status', 0)->isEmpty()) checked @endif>
@foreach ($sellerData['cartItems'] as $item)
@php
$sellerTotal += $item->status == 1
? optional($item->products->product_prices->where('is_active', 1)->sortByDesc('created_at')->first())->price * $item->prod_qty
: 0;
@endphp
status == 1) checked @endif>
@if ($item->products !== null && $item->products->product_images->isNotEmpty())
->image) }})
@endif
@if ($item->products !== null)
@endif
@if ($item->products !== null)
@php
$activePrice = $item->products->product_prices
->where('is_active', 1)
->sortByDesc('created_at')
->first();
@endphp
@if ($activePrice)
₱ {{ number_format($activePrice->price, 2, '.', ',') }}
@endif
@endif
@if ($item->products !== null)
{{ $item->prod_qty }}
@if ($item->products->qty > $item->prod_qty)
@else
Quantity exceeds available stock
@endif
@endif
@endforeach
@php
$total += $sellerTotal;
@endphp