@extends('layouts.reseller') @section('content')

Dashboard

Welcome back, {{ Auth::user()->name }}!

New Order

Total Orders

{{ \App\Models\Order::where('user_id', Auth::id())->count() }}

Lifetime Volume

Pending Review

{{ \App\Models\Order::where('user_id', Auth::id())->where('status', 'pending')->count() }}

Awaiting Quotation

Quotes Received

{{ \App\Models\Order::where('user_id', Auth::id())->where('status', 'quotation_sent')->count() }}

Action Required

Completed

{{ \App\Models\Order::where('user_id', Auth::id())->where('status', 'completed')->count() }}

Successfully Delivered

Update Profile

Manage address & details

Pending Quotes

Review received quotations

@php $admin = \App\Models\User::whereHas('roles', function ($q) { $q->where('name', 'admin'); })->first() ?? \App\Models\User::find(1); $adminName = $admin->name ?? 'Support'; $adminEmail = $admin->email ?? 'sales@hairniche.in'; $adminPhone = $admin->whatsapp_number ?? '+91 97811 34384'; @endphp

Need Help?

@if($admin)
{{ substr($adminName, 0, 1) }}
@endif

Contact your account manager for assistance.

{{ $adminName }}

{{ $adminEmail }}

Recent Activity

View All
@include('reseller.orders.partials.table', ['orders' => \App\Models\Order::where('user_id', Auth::id())->latest()->take(5)->get()])
@endsection