@extends('layouts.marketplace') @section('title', 'Marketplace') @section('mobile_header')

Marketplace

@include('pharmacy.partials.notifications_icon')
All Others My Listings
@endsection @section('mobile_content') @php $resultsTotal = method_exists($stocks, 'total') ? $stocks->total() : $stocks->count(); $nextSort = ($sort ?? '') === 'price_asc' ? 'price_desc' : 'price_asc'; @endphp
search

Showing {{ number_format($resultsTotal) }} results

filter_list Sort by Price
@if($stocks->count() === 0)
No listings to show.
@else
@foreach($stocks as $stock) @php $isMine = ($myPharmacyId ?? auth()->user()->pharmacy_id) === $stock->pharmacy_id; $isExpiring = $stock->expiry_date ? $stock->expiry_date->lte(now()->addMonths(3)) : false; $totalText = $stock->listing_type === 'sell' && ! is_null($stock->unit_price) ? 'T: '.number_format((float) $stock->unit_price * (float) $stock->quantity, 2).' DH' : 'Swap'; @endphp
Pharmacy logo
{{ $stock->listing_type === 'swap' ? 'Swap' : 'Sell' }}
{{ $totalText }}

{{ $stock->medicine?->name }}

Available Qty {{ number_format($stock->quantity) }} {{ $stock->unit }}
Expiry Date {{ $stock->expiry_date?->format('m / Y') }}
@if($isMine) edit Edit @else Request chat_bubble Chat @endif
@endforeach
{{ $stocks->links() }}
@endif
@endsection @section('desktop_content')

Marketplace

Find and trade medical supplies across the verified network

add Add New Listing
@if($stocks->count() === 0)
No listings to show. Marketplace shows only stocks that are available and visible from verified pharmacies.
@else
@foreach($stocks as $stock) @php $isMine = ($myPharmacyId ?? auth()->user()->pharmacy_id) === $stock->pharmacy_id; $typeText = $stock->listing_type === 'swap' ? 'Swap' : 'Sell'; $typeBadge = $stock->listing_type === 'swap' ? 'bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400' : 'bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400'; @endphp @endforeach
Pharmacy Name Medicine Name Quantity Expiry Type Actions
{{ $stock->medicine?->name }} {{ $stock->medicine?->generic_name }}
{{ number_format($stock->quantity) }} {{ $stock->unit }} {{ $stock->expiry_date?->format('M Y') }} {{ $typeText }}
@if($isMine) edit Edit @else Request chat @endif
{{ $stocks->links() }}
@endif

Short on stock?

Post an Urgent Request to the community and get notified when someone has what you need.

Post Request
campaign
verified_user

Verified Trade Network

All users on the marketplace are licensed pharmaceutical entities. Secure your supplies with confidence.

Learn more about security
@endsection