@extends('layouts.admin', ['heading' => 'Add Member', 'subheading' => 'Manual member creation'])

@section('content')
    <div class="admin-card p-5">
        <form method="POST" action="{{ route('admin.members.store') }}" class="grid grid-cols-1 gap-4 md:grid-cols-2">
            @csrf
            <input name="name" placeholder="Full Name" class="rounded border p-2" required>
            <input name="mobile" placeholder="Mobile" class="rounded border p-2" required>
            <input name="email" placeholder="Email" class="rounded border p-2">
            <input name="password" placeholder="Temp Password (optional)" class="rounded border p-2">
            <input name="sponsor_code" placeholder="Sponsor Referral Code" class="rounded border p-2" required>
            <select name="placement_leg" class="rounded border p-2">
                <option value="auto">Auto Placement</option>
                <option value="left">Left</option>
                <option value="right">Right</option>
            </select>
            <input name="package_amount" type="number" step="0.01" min="0" placeholder="Package Amount" class="rounded border p-2">
            <select name="status" class="rounded border p-2">
                <option value="pending">Pending</option>
                <option value="active">Active</option>
            </select>
            <label class="flex items-center gap-2 text-sm">
                <input type="checkbox" name="ignore_limits" value="1"> Ignore identity limits
            </label>
            <button class="rounded bg-emerald-600 px-4 py-2 text-sm text-white md:col-span-2">Create Member</button>
        </form>
    </div>
@endsection
