@extends('layouts.app')

@section('content')
<div class="top-bar d-flex justify-content-between align-items-center">
    <h2 class="mb-0">طلب رصيد جديد</h2>
</div>

<div class="row justify-content-center">
    <div class="col-lg-6">
        <div class="form-card">
            <form action="{{ route('balance-requests.store') }}" method="POST">
                @csrf
                <div class="row g-3">
                    <div class="col-md-6">
                        <label class="form-label">نوع الطلب</label>
                        <select name="type" class="form-select" required>
                            <option value="add">إضافة رصيد</option>
                            <option value="subtract">خصم رصيد</option>
                        </select>
                    </div>
                    <div class="col-md-6">
                        <label class="form-label">العملة</label>
                        <select name="currency" class="form-select" required>
                            <option value="USD">دولار (USD)</option>
                            <option value="SYR">ليرة (SYR)</option>
                        </select>
                    </div>
                    <div class="col-12">
                        <label class="form-label">المبلغ</label>
                        <input type="number" name="amount" class="form-control" step="0.01" min="1" required>
                    </div>
                    <div class="col-12 mt-4">
                        <button type="submit" class="btn btn-primary">
                            <i class="fas fa-paper-plane"></i>
                            إرسال الطلب
                        </button>
                        <a href="{{ route('balance-requests.index') }}" class="btn btn-secondary">
                            <i class="fas fa-arrow-right"></i>
                            رجوع
                        </a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
@endsection
