@extends('layouts.master')
@section('title', 'Project Reports')
@section('content')

<div class="container-fluid py-4">
    <div class="d-flex justify-content-end mb-3">
        <a href="{{ route('home') }}" class="btn-back">
            <i class="fas fa-arrow-left me-2"></i> Back to Dashboard
        </a>
    </div>

    <div class="row">
        <div class="col-md-12 text-center mb-4">
            <h2 class="page-title"><i class="fas fa-chart-line me-2"></i> Project Reports</h2>
            <p class="text-muted">Select a report type to view detailed information</p>
        </div>
    </div>

    <div class="row justify-content-center">
        <!-- Project Listing Report Card -->
        <div class="col-md-5 mb-4">
            <div class="card report-card h-100">
                <div class="card-body text-center p-4">
                    <div class="report-icon mb-3">
                        <i class="fas fa-list-alt"></i>
                    </div>
                    <h4 class="card-title">Project Listing Report</h4>
                    <p class="card-text">View a complete listing of all projects in the system with their details.</p>
                    <a href="{{ route('projectReports.listing') }}" class="btn btn-primary mt-3">View Report</a>
                </div>
            </div>
        </div>

        <!-- Project Report Card -->
        <div class="col-md-5 mb-4">
            <div class="card report-card h-100">
                <div class="card-body text-center p-4">
                    <div class="report-icon mb-3">
                        <i class="fas fa-chart-bar"></i>
                    </div>
                    <h4 class="card-title">Project Profit & Loss Report</h4>
                    <p class="card-text">Detailed analysis and reporting on project performance and metrics.</p>
                    <a href="#" class="btn btn-secondary mt-3">Coming Soon</a>
                </div>
            </div>
        </div>
    </div>
</div>

@endsection

@section('styles')
<style>
.btn-back {
    text-decoration: none;
    color: #1AB9D9;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    padding: 5px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}
.btn-back:hover {
    background-color: rgba(26, 185, 217, 0.1);
    text-decoration: none;
}
.page-title {
    color: #1a365d;
    font-weight: 600;
}
.report-card {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}
.report-icon {
    font-size: 3rem;
    color: #1AB9D9;
}
.card-title {
    color: #1a365d;
    font-weight: 600;
}
.card-text {
    color: #718096;
}
</style>
@endsection