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

@section('content')
@if(!empty($emptyParties))
    <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 or vendor first</h5>
            <p class="text-muted mb-3">You need at least one customer or vendor before creating a {{ strtolower($typeLabel) }}.</p>
            <a href="{{ route('admin.customers.create') }}" class="btn btn-success">Add Customer</a>
            <a href="{{ route('admin.vendors.create') }}" class="btn btn-outline-primary ms-2">Add Vendor</a>
            <a href="{{ route('admin.debit-notes.index') }}" class="btn btn-light ms-2">Back</a>
        </div>
    </div>
@else
    @include('admin.debit-notes._form')
@endif
@endsection
