@extends('layouts.seller') @section('title', 'Seller Panel') @section('content')
Clear

Wallet / COD Balance

PKR {{ number_format($walletBalance ?? 0, 2) }}

Today's Booked

{{ $todaysBooked ?? 0 }}

Delivered

{{ $deliveredParcels ?? 0 }}

Return

{{ $returnedParcels ?? 0 }}

Order Status Overview

@php $statuses = [ ['icon' => 'fa-box', 'label' => 'Total Orders', 'count' => $totalParcels ?? 0, 'color' => 'text-blue-500'], ['icon' => 'fa-box-open', 'label' => 'Unbooked', 'count' => 0, 'color' => 'text-gray-500'], ['icon' => 'fa-warehouse', 'label' => 'In Warehouse', 'count' => 0, 'color' => 'text-gray-500'], ['icon' => 'fa-truck', 'label' => 'Out for Delivery', 'count' => 0, 'color' => 'text-gray-500'], ['icon' => 'fa-phone-alt', 'label' => 'Attempted', 'count' => 0, 'color' => 'text-orange-500'], ['icon' => 'fa-shipping-fast', 'label' => 'Out for Return', 'count' => 0, 'color' => 'text-orange-500'], ['icon' => 'fa-undo-alt', 'label' => 'Returned', 'count' => $returnedParcels ?? 0, 'color' => 'text-red-500'], ['icon' => 'fa-user-check', 'label' => 'Shipper Advice', 'count' => 0, 'color' => 'text-gray-500'], ['icon' => 'fa-random', 'label' => 'Branch Shift', 'count' => 0, 'color' => 'text-gray-500'], ['icon' => 'fa-ban', 'label' => 'Cancelled', 'count' => 0, 'color' => 'text-red-500'], ['icon' => 'fa-search-minus', 'label' => 'Lost', 'count' => 0, 'color' => 'text-red-500'], ['icon' => 'fa-user-secret', 'label' => 'Stolen', 'count' => 0, 'color' => 'text-red-500'], ['icon' => 'fa-heart-broken', 'label' => 'Damaged', 'count' => 0, 'color' => 'text-red-500'], ]; @endphp @foreach($statuses as $status)

{{ $status['count'] }}

{{ $status['label'] }}

@endforeach

Recent Orders

View All
@forelse ($recentParcels ?? [] as $parcel) @empty @endforelse
Order ID Customer City Amount Status Date
{{ $parcel->tracking_id }} {{ $parcel->recipient_name }} {{ $parcel->recipient_city }} PKR {{ number_format($parcel->cod_amount, 2) }} {{ $parcel->status }} {{ $parcel->created_at->format('d M') }}
No recent orders found.

My Complaints

Create Ticket
@forelse ($recentComplaints ?? [] as $complaint)

{{ $complaint->subject }}

{{ $complaint->description }}

1
@empty

No open complaints.

@endforelse

Earnings

Earnings chart placeholder

@endsection