@extends('layouts.master')
@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 justify-content-center">
        <div class="col-md-8">
            <div class="card shadow-sm">
                <div class="card-header bg-primary text-white py-3">
                    <h5 class="mb-0"><i class="fas fa-exchange-alt me-2"></i> Customer Transaction Types</h5>
                </div>
                <div class="card-body p-4">
                    <a href="{{ route('customerTransactions.create', ['type' => 'invoice']) }}" 
                       class="card card-hover h-100 text-decoration-none">
                        <div class="card-body text-center d-flex flex-column justify-content-center align-items-center py-5">
                            <div class="icon-circle mb-3 bg-primary text-white rounded-circle d-flex align-items-center justify-content-center">
                                <i class="fas fa-file-alt fa-2x"></i>
                            </div>
                            <h4 class="card-title text-primary">Transaction Type</h4>
                            <p class="card-text text-muted">Set Transaction Type for Debit Note</p>
                        </div>
                        <div class="card-footer bg-light text-center py-3">
                            <span class="text-primary">Transaction type <i class="fas fa-arrow-right"></i></span>
                        </div>
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection

<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;
}
.card {
    border-radius: 8px;
    overflow: hidden;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}
.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 12px 20px;
}
.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    overflow: hidden;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card-footer {
    transition: background 0.3s;
}
.card-hover:hover .card-footer {
    background: #f8f9fa !important;
}
.icon-circle {
    width: 70px;
    height: 70px;
}
</style>