medical_services
{{ config('app.name') }}
Marketplace
Community
My Stock
Requests
Chats
@if(auth()->user()->pharmacy?->isVerified())
Verifications
@endif
search
@include('pharmacy.partials.notifications_icon', ['anchorClass' => 'p-2 text-slate-500 hover:bg-slate-100 dark:hover:bg-slate-800 rounded-full relative'])
verified_user
{{ auth()->user()->pharmacy?->name }}
{{ auth()->user()->name }}
@csrf
logout
@php $pharmacyId = auth()->user()->pharmacy_id; $notificationsForTicker = \App\Models\PharmacyNotification::query() ->where('pharmacy_id', $pharmacyId) ->whereNull('read_at') ->orderByRaw('read_at is null desc') ->orderByDesc('id') ->limit(12) ->get(); $tickerTitles = $notificationsForTicker->map(function ($n) { if ($n->type === 'user_news') { return (string) ($n->data['title'] ?? 'News'); } if ($n->type === 'expiring_stock') { $medicine = (string) ($n->data['medicine'] ?? 'Medicine'); return 'Expiring: '.$medicine; } if ($n->type === 'verification_request') { $name = (string) ($n->data['requester_name'] ?? 'Pharmacy'); return 'Verification request: '.$name; } if ($n->type === 'verification_result') { $status = ucfirst((string) ($n->data['status'] ?? 'updated')); return 'Verification '.$status; } return ucwords(str_replace('_', ' ', (string) $n->type)); })->filter(fn ($t) => is_string($t) && trim($t) !== '')->values(); @endphp @if($tickerTitles->isNotEmpty())
campaign
@foreach($tickerTitles as $title)
{{ $title }}
@if(! $loop->last)
•
@endif @endforeach
All
@endif
@yield('mobile_header')
@yield('mobile_content')
@yield('desktop_content')
@if(! request()->routeIs('pharmacy.verifications.*') && ! request()->routeIs('pharmacy.community.index'))
storefront
Market
assignment
Requests
inventory_2
Stock
person
Profile
@endif