@extends('backEnd.layouts.master') @section('title', 'Manage Resellers') @section('css') @endsection @section('content')
{{-- PAGE HEADER --}}

Manage Resellers

Overview of all registered resellers and partners.

{{-- Add create button if needed --}}
{{-- SEARCH / FILTER --}}
@if(request('keyword')) Clear @endif
{{-- TABLE --}}
@foreach($resellers as $key => $reseller) {{-- Reseller Profile --}} {{-- Shop Info --}} {{-- Contact --}} {{-- Wallet --}} {{-- Verification --}} {{-- Status --}} {{-- Actions --}} @endforeach
# Reseller Profile Shop Info Contact Wallet Verification Status Actions
{{ $loop->iteration }}
{{ substr($reseller->name, 0, 1) }}
{{ $reseller->name }}
ID: #{{ $reseller->id }}
{{ $reseller->shop_name ?? 'N/A' }}
{{Str::limit($reseller->email, 20)}}
৳{{ number_format($reseller->wallet_balance ?? 0, 2) }} @if($reseller->verification_status == 'approved') Verified @elseif($reseller->verification_status == 'rejected') Rejected @else Pending @endif @if($reseller->status == 1) Active @else Inactive @endif
{{-- Status Toggle --}}
@csrf @if($reseller->status == 1) @else @endif
{{-- Edit --}} {{-- Delete --}}
@csrf @method('DELETE')
{{-- PAGINATION --}}
Showing {{ $resellers->firstItem() }} to {{ $resellers->lastItem() }} of {{ $resellers->total() }} resellers
{{ $resellers->links('pagination::bootstrap-4') }}
@endsection @section('script') @endsection