{{-- resources/views/reports/index.blade.php --}}
@extends('layouts.app')

@section('title', 'Reports')
@section('header', 'Reports')

@section('content')
<div class="row">
    <div class="col-md-4 mb-3">
        <div class="card stat-card">
            <div class="card-body text-center">
                <i class="fas fa-chart-line fa-3x text-primary mb-3"></i>
                <h5>Sales Report</h5>
                <p>View sales statistics and analytics</p>
                <a href="{{ route('reports.sales') }}" class="btn btn-primary">View Report</a>
            </div>
        </div>
    </div>
    
    <div class="col-md-4 mb-3">
        <div class="card stat-card">
            <div class="card-body text-center">
                <i class="fas fa-truck fa-3x text-success mb-3"></i>
                <h5>Purchases Report</h5>
                <p>View purchase history</p>
                <a href="{{ route('reports.purchases') }}" class="btn btn-success">View Report</a>
            </div>
        </div>
    </div>
    
    <div class="col-md-4 mb-3">
        <div class="card stat-card">
            <div class="card-body text-center">
                <i class="fas fa-money-bill-wave fa-3x text-warning mb-3"></i>
                <h5>Expenses Report</h5>
                <p>Track all expenses</p>
                <a href="{{ route('reports.expenses') }}" class="btn btn-warning">View Report</a>
            </div>
        </div>
    </div>
    
    <div class="col-md-4 mb-3">
        <div class="card stat-card">
            <div class="card-body text-center">
                <i class="fas fa-chart-pie fa-3x text-info mb-3"></i>
                <h5>Profit & Loss</h5>
                <p>View financial performance</p>
                <a href="{{ route('reports.profit-loss') }}" class="btn btn-info">View Report</a>
            </div>
        </div>
    </div>
    
    <div class="col-md-4 mb-3">
        <div class="card stat-card">
            <div class="card-body text-center">
                <i class="fas fa-boxes fa-3x text-danger mb-3"></i>
                <h5>Stock Report</h5>
                <p>Monitor inventory levels</p>
                <a href="{{ route('reports.stock') }}" class="btn btn-danger">View Report</a>
            </div>
        </div>
    </div>
    {{-- Add this to resources/views/reports/index.blade.php --}}
<div class="col-md-4 mb-3">
    <div class="card stat-card">
        <div class="card-body text-center">
            <i class="fas fa-percent fa-3x text-warning mb-3"></i>
            <h5>Tax Report</h5>
            <p>View tax collection details</p>
            <a href="{{ route('reports.tax') }}" class="btn btn-warning">View Report</a>
        </div>
    </div>
</div>
</div>
@endsection