@php $now = \Illuminate\Support\Carbon::now(); $orders = []; $query = \App\Models\Ecommerce\Order::with('orderDetails','orderDetails.product') ->whereDate('created_at', $now->toDateString()); $orders = $query->latest()->take(10)->get(); @endphp
  • {{ count($query->where('notification_status','unread')->get()) }}
    {{ __('pages.Order Notication Inbox') }}
    @forelse($orders as $order)
    {{ __('pages.An order has been placed') }}.
    Invoice Id: {{ $order->invoice_id }}
    {{ $order->created_at->diffForHumans() }}
    @empty
    {{ __('pages.You don\'t have any notification') }}!
    @endforelse
  • @php $langact = \App\Models\Language::where('iso', session()->get('locale'))->first(); $languages = \App\Models\Language::where('iso', '!=', session()->get('locale'))->get(); $date = date('Y-m-d', time()); $expire_medicine = \App\Models\Batch::where('shop_id', Auth::user()->shop_id)->where('expire', '<=', $date)->count(); $stockout_medicine = \App\Models\Medicine::where('shop_id', Auth::user()->shop_id)->whereHas('batch', function ($query) { $query->where('qty', '<', 1); })->count(); @endphp @if($langact != null) {{$langact->name}} @endif
    @foreach($languages as $lang) {{$lang->name}} @endforeach
  • (POS)  
  • @if($expire_medicine>0)
  • {{ $expire_medicine }}
  • @endif @if($stockout_medicine>0)
  • {{$stockout_medicine}}
  • @endif
  • {{ Auth::user()->name }}{{ Auth::user()->role ? Auth::user()->role->name: 'Admin' }}
    image)) src="{{asset('storage/images/profile/'.Auth::user()->image.'')}}" @else src="{{asset('dashboard/app-assets/images/f2.jpg')}}" @endif alt="avatar" height="40" width="40">
    {{ __('Dashboard') }} {{ __('Change Password') }} {{ __('Change Info') }} {{ __('Settings') }}
    {{ __('Logout') }}
@php $my_pack = \App\Models\Package::where('id', Auth::user()->shop->package_id)->first(); @endphp