@extends('admin.layouts.app')

@section('title', 'Certificates Dashboard')

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title">Certificates Management</h3>
                </div>
                <div class="card-body">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="card bg-primary text-white">
                                <div class="card-body">
                                    <div class="row">
                                        <div class="col-8">
                                            <h4>Certificate Templates</h4>
                                            <p>Manage certificate designs and layouts</p>
                                                                    <a href="{{ route('admin.graduation-certificates.templates.index') }}" class="btn btn-light">
                            Manage Templates
                        </a>
                                        </div>
                                        <div class="col-4 text-right">
                                            <i class="fas fa-file-alt fa-3x"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="col-md-6">
                            <div class="card bg-success text-white">
                                <div class="card-body">
                                    <div class="row">
                                        <div class="col-8">
                                            <h4>Generated Certificates</h4>
                                            <p>View and manage student certificates</p>
                                                                    <a href="{{ route('admin.graduation-certificates.index') }}" class="btn btn-light">
                            View Certificates
                        </a>
                                        </div>
                                        <div class="col-4 text-right">
                                            <i class="fas fa-certificate fa-3x"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row mt-4">
                        <div class="col-md-6">
                            <div class="card">
                                <div class="card-header">
                                    <h5 class="card-title">Quick Actions</h5>
                                </div>
                                <div class="card-body">
                                    <div class="list-group">
                                        <a href="{{ route('admin.graduation-certificates.templates.create') }}" class="list-group-item list-group-item-action">
                                            <i class="fas fa-plus text-primary"></i> Create New Template
                                        </a>
                                        <a href="{{ route('admin.graduation-certificates.create') }}" class="list-group-item list-group-item-action">
                                            <i class="fas fa-plus text-success"></i> Generate New Certificate
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="col-md-6">
                            <div class="card">
                                <div class="card-header">
                                    <h5 class="card-title">Module Information</h5>
                                </div>
                                <div class="card-body">
                                    <p><strong>Features:</strong></p>
                                    <ul>
                                        <li>Upload and manage certificate background images</li>
                                        <li>Drag & drop text positioning for customization</li>
                                        <li>Generate certificates for students automatically</li>
                                        <li>Download generated certificates</li>
                                        <li>Template-based certificate generation</li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
