@extends('layouts.admin')
@section('title', 'New ' . $typeLabel)
@section('page-title', 'Add New ' . $typeLabel)

@section('content')
@if($customers->isEmpty())
    <div class="card billing-form-card border-0">
        <div class="card-body billing-empty py-5">
            <div class="billing-empty__icon"><i class="ri-team-line"></i></div>
            <h5 class="mb-2">Add a client first</h5>
            <p class="text-muted mb-3">You need at least one customer before creating an invoice.</p>
            <a href="{{ route('admin.customers.create') }}" class="btn btn-success">Add Customer</a>
            <a href="{{ route('admin.invoices.index') }}" class="btn btn-light ms-2">Back</a>
        </div>
    </div>
@else
    @include('admin.invoices._form')
@endif
@endsection
