@extends('layouts.app') @section('title', 'Merchants') @section('subtitle', 'Everyone using the platform, with their collections.') @section('content')
@if ($merchants->isEmpty()) @else
@foreach ($merchants as $merchant) @endforeach
Merchant Orders Paid Collected Status Joined
{{ $merchant->displayName() }}
{{ $merchant->email }}{{ $merchant->phone ? ' · '.$merchant->phone : '' }}
{{ number_format($merchant->orders_count) }} {{ number_format($merchant->paid_orders_count) }} ₹{{ number_format($merchant->paid_amount ?? 0, 2) }} {{ $merchant->is_active ? 'Active' : 'Disabled' }} {{ $merchant->created_at->format('d M Y') }}
@csrf
@endif @if ($merchants->hasPages())
{{ $merchants->links() }}
@endif
@endsection