@extends('seller.layout') @section('content') @php if (App::getLocale() == 'ar') { $align = 'text-right'; } else { $align = 'text-left'; } $this->seller_id = \App\Seller::where('user_id', Auth::user()->id)->first()->id; $orders_count = \App\Order::join('order_products', function ($join) { $join->on('orders.id', '=', 'order_products.order_id')->where('order_products.seller_id', $this->seller_id); })->count('orders.id'); $refunds_count = \App\RefundRequest::where('seller_id', $this->seller_id)->count(); $withdrawRequest_count = \App\SellerWithdrawRequest::where('viewed', 0) ->where('seller_id', $this->seller_id) ->count(); @endphp