Available Market Items

@if ($expiryItems->count() > 0)

Limited Time Items

@foreach ($expiryItems as $item)
@if (!empty($item->image)) @if (Str::startsWith($item->image, ['http://', 'https://'])) {{ $item->name }} @elseif (file_exists(storage_path('app/public/' . $item->image))) {{ $item->name }} @else Default Image @endif @else Default Image @endif
{{ $item->name }}

{!! $item->description !!}

💎{{ number_format($item->price, 2) }}

Expires on: {{ \Carbon\Carbon::parse($item->expiry_date)->format('Y-m-d H:i:s') }}

@if ($item->stock == 999)

Stock: Unlimited Stock

@else

Stock: {{ $item->stock }}

@endif View Details
@csrf
@endforeach
@endif @if ($limitedStockItems->count() > 0)

Limited Stock Items

@foreach ($limitedStockItems as $item)
@if (!empty($item->image)) @if (Str::startsWith($item->image, ['http://', 'https://'])) {{ $item->name }} @elseif (file_exists(storage_path('app/public/' . $item->image))) {{ $item->name }} @else Default Image @endif @else Default Image @endif
{{ $item->name }}

{!! $item->description !!}

💎{{ number_format($item->price, 2) }}

Stock: {{ $item->stock }}

View Details
@csrf
@endforeach
@endif @if ($unlimitedItems->count() > 0)

Unlimited Items

@foreach ($unlimitedItems as $item)
@if (!empty($item->image)) @if (Str::startsWith($item->image, ['http://', 'https://'])) {{ $item->name }} @elseif (file_exists(storage_path('app/public/' . $item->image))) {{ $item->name }} @else Default Image @endif @else Default Image @endif
{{ $item->name }}

{!! $item->description !!}

💎{{ number_format($item->price, 2) }}

Unlimited Stock

View Details
@csrf
@endforeach
@endif