@extends('layouts.app')

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-12">
            <div class="page-title-box">
                <h4 class="page-title">Add Tax Rate</h4>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">
                    <form action="{{ route('finance.taxes.store') }}" method="POST">
                        @csrf
                        <div class="mb-3">
                            <label class="form-label">Tax Name</label>
                            <input type="text" name="name" class="form-control" required placeholder="VAT">
                        </div>
                        <div class="mb-3">
                            <label class="form-label">Rate (%)</label>
                            <input type="number" step="0.01" name="rate" class="form-control" required placeholder="15.00">
                        </div>
                        <div class="mt-3">
                            <button type="submit" class="btn btn-primary">Save Tax Rate</button>
                            <a href="{{ route('finance.settings.taxes') }}" class="btn btn-secondary">Cancel</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
