@extends('layouts.app')

@section('title', 'Reports')
@section('page-title', 'Reports')

@section('content')
<div class="row">
    <div class="col-lg-4 col-md-6 mb-4">
        <div class="card h-100">
            <div class="card-body text-center">
                <div class="mb-3">
                    <i class="bi bi-wallet2" style="font-size: 48px; color: var(--primary);"></i>
                </div>
                <h5 class="card-title mb-2">Loan Reports</h5>
                <p class="text-muted small mb-3">View all loan details with filters</p>
                <a href="{{ route('partner.reports.loans') }}" class="btn btn-primary">
                    <i class="bi bi-arrow-right me-2"></i>View Report
                </a>
            </div>
        </div>
    </div>

    <div class="col-lg-4 col-md-6 mb-4">
        <div class="card h-100">
            <div class="card-body text-center">
                <div class="mb-3">
                    <i class="bi bi-cash-coin" style="font-size: 48px; color: var(--success);"></i>
                </div>
                <h5 class="card-title mb-2">Repayment Report</h5>
                <p class="text-muted small mb-3">Track all repayment transactions</p>
                <a href="{{ route('partner.reports.repayments') }}" class="btn btn-success">
                    <i class="bi bi-arrow-right me-2"></i>View Report
                </a>
            </div>
        </div>
    </div>

    <div class="col-lg-4 col-md-6 mb-4">
        <div class="card h-100">
            <div class="card-body text-center">
                <div class="mb-3">
                    <i class="bi bi-exclamation-triangle" style="font-size: 48px; color: var(--danger);"></i>
                </div>
                <h5 class="card-title mb-2">Overdue Report</h5>
                <p class="text-muted small mb-3">Loans with overdue payments</p>
                <a href="{{ route('partner.reports.overdue') }}" class="btn btn-danger">
                    <i class="bi bi-arrow-right me-2"></i>View Report
                </a>
            </div>
        </div>
    </div>

    <div class="col-lg-4 col-md-6 mb-4">
        <div class="card h-100">
            <div class="card-body text-center">
                <div class="mb-3">
                    <i class="bi bi-calendar-check" style="font-size: 48px; color: var(--warning);"></i>
                </div>
                <h5 class="card-title mb-2">Due Report</h5>
                <p class="text-muted small mb-3">Upcoming loan due dates</p>
                <a href="{{ route('partner.reports.due') }}" class="btn btn-warning">
                    <i class="bi bi-arrow-right me-2"></i>View Report
                </a>
            </div>
        </div>
    </div>

    <div class="col-lg-4 col-md-6 mb-4">
        <div class="card h-100">
            <div class="card-body text-center">
                <div class="mb-3">
                    <i class="bi bi-piggy-bank" style="font-size: 48px; color: var(--info);"></i>
                </div>
                <h5 class="card-title mb-2">Savings Report</h5>
                <p class="text-muted small mb-3">All savings accounts details</p>
                <a href="{{ route('partner.reports.savings') }}" class="btn btn-info">
                    <i class="bi bi-arrow-right me-2"></i>View Report
                </a>
            </div>
        </div>
    </div>

    <div class="col-lg-4 col-md-6 mb-4">
        <div class="card h-100">
            <div class="card-body text-center">
                <div class="mb-3">
                    <i class="bi bi-cash-stack" style="font-size: 48px; color: var(--success);"></i>
                </div>
                <h5 class="card-title mb-2">Collection Report</h5>
                <p class="text-muted small mb-3">Daily collection summary</p>
                <a href="{{ route('partner.reports.collection') }}" class="btn btn-success">
                    <i class="bi bi-arrow-right me-2"></i>View Report
                </a>
            </div>
        </div>
    </div>

    <div class="col-lg-4 col-md-6 mb-4">
        <div class="card h-100">
            <div class="card-body text-center">
                <div class="mb-3">
                    <i class="bi bi-calendar-event" style="font-size: 48px; color: var(--primary);"></i>
                </div>
                <h5 class="card-title mb-2">Savings Maturity Report</h5>
                <p class="text-muted small mb-3">Matured and upcoming savings</p>
                <a href="{{ route('partner.reports.savings-maturity') }}" class="btn btn-primary">
                    <i class="bi bi-arrow-right me-2"></i>View Report
                </a>
            </div>
        </div>
    </div>

    <div class="col-lg-4 col-md-6 mb-4">
        <div class="card h-100">
            <div class="card-body text-center">
                <div class="mb-3">
                    <i class="bi bi-file-earmark-spreadsheet" style="font-size: 48px; color: var(--secondary);"></i>
                </div>
                <h5 class="card-title mb-2">Balance Sheet</h5>
                <p class="text-muted small mb-3">Financial position overview</p>
                <a href="{{ route('partner.reports.balance-sheet') }}" class="btn btn-secondary">
                    <i class="bi bi-arrow-right me-2"></i>View Report
                </a>
            </div>
        </div>
    </div>
</div>
@endsection



