<?php

use Livewire\Volt\Component;
use App\Models\RegisterSeller;

?>

<div>
    <!--[if BLOCK]><![endif]--><?php if(session()->has('success')): ?>
    <div class="mb-4 p-4 bg-green-100 text-green-800 rounded-lg text-center">
        <?php echo e(session('success')); ?>

    </div>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
    <form wire:submit.prevent="submit" class="space-y-6">
        <div class="grid md:grid-cols-2 gap-6">
            <div>
                <label class="block text-lg font-bold text-gray-900 mb-3">نام</label>
                <input type="text" wire:model="first_name"
                    class="w-full px-4 py-3 border-2 border-gray-200 !rounded-button text-lg focus:border-primary focus:outline-none"
                    placeholder="نام خود را وارد کنید" required />
                <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['first_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-red-600 text-sm"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
            </div>
            <div>
                <label class="block text-lg font-bold text-gray-900 mb-3">نام خانوادگی</label>
                <input type="text" wire:model="last_name"
                    class="w-full px-4 py-3 border-2 border-gray-200 !rounded-button text-lg focus:border-primary focus:outline-none"
                    placeholder="نام خانوادگی خود را وارد کنید" required />
                <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['last_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-red-600 text-sm"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
            </div>
        </div>

        <div>
            <label class="block text-lg font-bold text-gray-900 mb-3">شماره موبایل</label>
            <input type="tel" wire:model="phone"
                class="w-full px-4 py-3 border-2 border-gray-200 !rounded-button text-lg focus:border-primary focus:outline-none"
                placeholder="09xxxxxxxxx" required />
            <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-red-600 text-sm"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
        </div>

        <div>
            <label class="block text-lg font-bold text-gray-900 mb-3">کد ملی</label>
            <input type="text" wire:model="social_number"
                class="w-full px-4 py-3 border-2 border-gray-200 !rounded-button text-lg focus:border-primary focus:outline-none"
                placeholder="کد ملی 10 رقمی" required />
            <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['social_number'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-red-600 text-sm"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
        </div>

        <button type="submit"
            class="w-full bg-primary text-white px-8 py-4 !rounded-button text-xl font-bold hover:bg-blue-700 transition-colors whitespace-nowrap">
            ثبت‌نام و شروع کسب درآمد
        </button>
    </form>
</div><?php /**PATH D:\_projects\Laravel\InsureEarn\resources\views\livewire/register-seller.blade.php ENDPATH**/ ?>