@extends('layouts.app')

@section('title', 'Add Corporate Company')

@section('content')
<div class="max-w-3xl mx-auto space-y-6">
    <div class="flex items-center justify-between">
        <div>
            <h1 class="text-xl font-bold text-slate-900 dark:text-white">Register Corporate Client Company</h1>
            <p class="text-xs text-slate-500">Corporate client record for batch visa applications, employee renewals, and corporate credit accounts.</p>
        </div>
        <a href="{{ route('app.corporate.companies.index') }}" class="px-4 py-2 bg-slate-200 dark:bg-slate-700 text-slate-700 dark:text-slate-200 font-semibold text-xs rounded-xl">Cancel</a>
    </div>

    <form action="{{ route('app.corporate.companies.store') }}" method="POST" class="bg-white dark:bg-slate-800 rounded-3xl p-6 border border-slate-200 dark:border-slate-700/60 shadow-sm space-y-6 text-xs">
        @csrf

        <div class="space-y-4">
            <h3 class="font-bold text-slate-900 dark:text-white uppercase tracking-wider text-xs border-b border-slate-100 dark:border-slate-700 pb-2">Company Information</h3>

            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                <div>
                    <label class="block font-semibold mb-1">Company Name (English) *</label>
                    <input type="text" name="name_en" required placeholder="Al Habtoor Contracting LLC" class="w-full px-3 py-2 bg-slate-50 dark:bg-slate-900 border border-slate-300 dark:border-slate-700 rounded-xl font-bold">
                </div>
                <div>
                    <label class="block font-semibold mb-1">Company Name (Arabic)</label>
                    <input type="text" name="name_ar" dir="rtl" placeholder="شركة الحبتور للمقاولات" class="w-full px-3 py-2 bg-slate-50 dark:bg-slate-900 border border-slate-300 dark:border-slate-700 rounded-xl font-bold">
                </div>
            </div>

            <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                <div>
                    <label class="block font-semibold mb-1">Trade License Number</label>
                    <input type="text" name="trade_license_number" placeholder="678901" class="w-full px-3 py-2 bg-slate-50 dark:bg-slate-900 border border-slate-300 dark:border-slate-700 rounded-xl font-mono">
                </div>
                <div>
                    <label class="block font-semibold mb-1">License Expiry Date</label>
                    <input type="date" name="trade_license_expiry" class="w-full px-3 py-2 bg-slate-50 dark:bg-slate-900 border border-slate-300 dark:border-slate-700 rounded-xl">
                </div>
                <div>
                    <label class="block font-semibold mb-1">TRN (Tax Registration Number)</label>
                    <input type="text" name="trn" placeholder="100987654300003" class="w-full px-3 py-2 bg-slate-50 dark:bg-slate-900 border border-slate-300 dark:border-slate-700 rounded-xl font-mono">
                </div>
            </div>

            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                <div>
                    <label class="block font-semibold mb-1">Credit Limit (AED)</label>
                    <input type="number" name="credit_limit" value="50000" class="w-full px-3 py-2 bg-slate-50 dark:bg-slate-900 border border-slate-300 dark:border-slate-700 rounded-xl font-bold font-mono">
                </div>
                <div>
                    <label class="block font-semibold mb-1">Credit Payment Terms (Days)</label>
                    <input type="number" name="credit_days" value="30" class="w-full px-3 py-2 bg-slate-50 dark:bg-slate-900 border border-slate-300 dark:border-slate-700 rounded-xl font-bold font-mono">
                </div>
            </div>
        </div>

        <div class="flex justify-end pt-4 border-t border-slate-100 dark:border-slate-700">
            <button type="submit" class="px-6 py-2.5 bg-sky-600 hover:bg-sky-700 text-white font-bold rounded-xl shadow-sm">Save Corporate Company</button>
        </div>
    </form>
</div>
@endsection
