@extends('admin.layouts.master') @section('title', 'Partner Management') @push('styles') @endpush @section('content')
{{-- 1. HIGH-LEVEL STATS --}}

{{ $stats['total'] ?? 0 }}

Total Partners

{{ $stats['agents'] ?? 0 }}

Active Agents

{{ $stats['corporate'] ?? 0 }}

Corporate Clients

{{ $stats['active'] ?? 0 }}

Currently Active

{{-- 2. MAIN CONTENT CARD --}}
{{-- HEADER --}}
Partners Directory
Manage your business relationships
{{-- Search --}}
{{-- Add Button --}} Add Partner
{{-- TABLE --}}
@forelse($companies as $company) {{-- Identity --}} {{-- Type --}} {{-- Contact --}} {{-- Financials --}} {{-- Status --}} {{-- Actions --}} @empty @endforelse
Company / Agent Type Contact Info Financials Status Actions
@if ($company->logo) Logo @else {{ substr($company->name, 0, 1) }} @endif
{{ $company->name }}
@if ($company->website) {{ parse_url($company->website, PHP_URL_HOST) ?? $company->website }} @else No website @endif
@if ($company->isAgent()) Agent @else Corporate @endif
{{ $company->email }}
@if ($company->phone)
{{ $company->phone }}
@endif
@if ($company->credit_limit > 0)
Credit Limit
₹{{ number_format($company->credit_limit) }}
@endif
@if ($company->isAgent()) Commission
{{ $company->default_commission_rate }}%
@else Discount
{{ $company->standard_discount }}%
@endif
@if ($company->is_active)
Active
@else
Inactive
@endif
@csrf @method('DELETE')
No partners found

Try adjusting your filters or add a new partner.

{{-- PAGINATION --}} @if ($companies->hasPages()) @endif
@endsection @push('scripts') @endpush