<div class="flex flex-col md:flex-row md:min-h-screen">
    <?php echo $__env->make('components.basics.toast', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <!-- Left Column - Background Image (Hidden on mobile, Sticky on desktop) -->
    <div
        class="hidden md:flex md:sticky md:top-0 md:w-2/3 md:h-screen items-center justify-center order-1 md:order-none">
        <div class="w-full h-full bg-cover bg-center bg-no-repeat bg-black/70"
            style="background-image: url('<?php echo e(asset('images/bg-login.png')); ?>');">
        </div>
    </div>

    <!-- Right Column - Form (Scrollable) -->
    <div class="w-full md:w-1/3 md:overflow-y-auto flex items-center justify-center px-4 py-8 md:px-8 relative order-2 md:order-none min-h-screen"
        x-data="{ showWarningModal: false }">

        <div class="w-full max-w-md px-8">
            <form wire:submit.prevent="register" class="mt-6">

                <?php if (isset($component)) { $__componentOriginal086b83901cc3d32db515f2f6f5ca1656 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal086b83901cc3d32db515f2f6f5ca1656 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.section-title','data' => ['title' => 'Créer un compte','subtitle' => 'Complétez les informations ci-dessous.','class' => 'mb-6']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.section-title'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Créer un compte','Subtitle' => 'Complétez les informations ci-dessous.','class' => 'mb-6']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal086b83901cc3d32db515f2f6f5ca1656)): ?>
<?php $attributes = $__attributesOriginal086b83901cc3d32db515f2f6f5ca1656; ?>
<?php unset($__attributesOriginal086b83901cc3d32db515f2f6f5ca1656); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal086b83901cc3d32db515f2f6f5ca1656)): ?>
<?php $component = $__componentOriginal086b83901cc3d32db515f2f6f5ca1656; ?>
<?php unset($__componentOriginal086b83901cc3d32db515f2f6f5ca1656); ?>
<?php endif; ?>

                <?php echo csrf_field(); ?>
                <?php if (isset($component)) { $__componentOriginal527c3366704d429cba72b24c330bec17 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal527c3366704d429cba72b24c330bec17 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.input','data' => ['class' => 'mb-4','type' => 'text','name' => 'firstname','label' => 'Prénom','placeholder' => 'Votre prénom','wire:model.live' => 'firstname','error' => $errors->first('firstname')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mb-4','type' => 'text','name' => 'firstname','label' => 'Prénom','placeholder' => 'Votre prénom','wire:model.live' => 'firstname','error' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($errors->first('firstname'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal527c3366704d429cba72b24c330bec17)): ?>
<?php $attributes = $__attributesOriginal527c3366704d429cba72b24c330bec17; ?>
<?php unset($__attributesOriginal527c3366704d429cba72b24c330bec17); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal527c3366704d429cba72b24c330bec17)): ?>
<?php $component = $__componentOriginal527c3366704d429cba72b24c330bec17; ?>
<?php unset($__componentOriginal527c3366704d429cba72b24c330bec17); ?>
<?php endif; ?>
                <?php if (isset($component)) { $__componentOriginal527c3366704d429cba72b24c330bec17 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal527c3366704d429cba72b24c330bec17 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.input','data' => ['class' => 'mb-4','type' => 'text','name' => 'lastname','label' => 'Nom','placeholder' => 'Votre nom','wire:model.live' => 'lastname','error' => $errors->first('lastname')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mb-4','type' => 'text','name' => 'lastname','label' => 'Nom','placeholder' => 'Votre nom','wire:model.live' => 'lastname','error' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($errors->first('lastname'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal527c3366704d429cba72b24c330bec17)): ?>
<?php $attributes = $__attributesOriginal527c3366704d429cba72b24c330bec17; ?>
<?php unset($__attributesOriginal527c3366704d429cba72b24c330bec17); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal527c3366704d429cba72b24c330bec17)): ?>
<?php $component = $__componentOriginal527c3366704d429cba72b24c330bec17; ?>
<?php unset($__componentOriginal527c3366704d429cba72b24c330bec17); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginal527c3366704d429cba72b24c330bec17 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal527c3366704d429cba72b24c330bec17 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.input','data' => ['class' => 'mb-4','type' => 'email','name' => 'email','label' => 'Email','placeholder' => 'Votre email','wire:model.live' => 'email','error' => $errors->first('email')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mb-4','type' => 'email','name' => 'email','label' => 'Email','placeholder' => 'Votre email','wire:model.live' => 'email','error' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($errors->first('email'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal527c3366704d429cba72b24c330bec17)): ?>
<?php $attributes = $__attributesOriginal527c3366704d429cba72b24c330bec17; ?>
<?php unset($__attributesOriginal527c3366704d429cba72b24c330bec17); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal527c3366704d429cba72b24c330bec17)): ?>
<?php $component = $__componentOriginal527c3366704d429cba72b24c330bec17; ?>
<?php unset($__componentOriginal527c3366704d429cba72b24c330bec17); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginal527c3366704d429cba72b24c330bec17 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal527c3366704d429cba72b24c330bec17 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.input','data' => ['class' => 'mb-4','type' => 'text','name' => 'merchant_name','label' => 'Nom de l\'établissement','placeholder' => 'Ex: Pharmacie Saint-Joseph','wire:model.live' => 'merchant_name','error' => $errors->first('merchant_name')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mb-4','type' => 'text','name' => 'merchant_name','label' => 'Nom de l\'établissement','placeholder' => 'Ex: Pharmacie Saint-Joseph','wire:model.live' => 'merchant_name','error' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($errors->first('merchant_name'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal527c3366704d429cba72b24c330bec17)): ?>
<?php $attributes = $__attributesOriginal527c3366704d429cba72b24c330bec17; ?>
<?php unset($__attributesOriginal527c3366704d429cba72b24c330bec17); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal527c3366704d429cba72b24c330bec17)): ?>
<?php $component = $__componentOriginal527c3366704d429cba72b24c330bec17; ?>
<?php unset($__componentOriginal527c3366704d429cba72b24c330bec17); ?>
<?php endif; ?>

                <?php if (isset($component)) { $__componentOriginal527c3366704d429cba72b24c330bec17 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal527c3366704d429cba72b24c330bec17 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.input','data' => ['class' => 'mb-4','type' => 'password','name' => 'password','label' => 'Mot de passe','placeholder' => 'Mot de passe','showPasswordToggle' => true,'wire:model.live' => 'password','error' => $errors->first('password')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mb-4','type' => 'password','name' => 'password','label' => 'Mot de passe','placeholder' => 'Mot de passe','showPasswordToggle' => true,'wire:model.live' => 'password','error' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($errors->first('password'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal527c3366704d429cba72b24c330bec17)): ?>
<?php $attributes = $__attributesOriginal527c3366704d429cba72b24c330bec17; ?>
<?php unset($__attributesOriginal527c3366704d429cba72b24c330bec17); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal527c3366704d429cba72b24c330bec17)): ?>
<?php $component = $__componentOriginal527c3366704d429cba72b24c330bec17; ?>
<?php unset($__componentOriginal527c3366704d429cba72b24c330bec17); ?>
<?php endif; ?>


                <?php if (isset($component)) { $__componentOriginal26cec1ed531c681893e5ab894ddc394f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal26cec1ed531c681893e5ab894ddc394f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.button','data' => ['type' => 'button','class' => 'w-full','@click' => 'showWarningModal = true','disabled' => !$canRegister]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'button','class' => 'w-full','@click' => 'showWarningModal = true','disabled' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(!$canRegister)]); ?>
                    <span>S'inscrire</span>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal26cec1ed531c681893e5ab894ddc394f)): ?>
<?php $attributes = $__attributesOriginal26cec1ed531c681893e5ab894ddc394f; ?>
<?php unset($__attributesOriginal26cec1ed531c681893e5ab894ddc394f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal26cec1ed531c681893e5ab894ddc394f)): ?>
<?php $component = $__componentOriginal26cec1ed531c681893e5ab894ddc394f; ?>
<?php unset($__componentOriginal26cec1ed531c681893e5ab894ddc394f); ?>
<?php endif; ?>

                <!-- Warning Modal for Database Populated -->
                <div>
                    <?php if (isset($component)) { $__componentOriginald996639ab4fb79d3c313ff4ec16a2cba = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald996639ab4fb79d3c313ff4ec16a2cba = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.modal','data' => ['show' => 'showWarningModal','title' => 'Création de compte','description' => 'Création de compte pour un nouvel établissement','size' => 'md','canClose' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.modal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['show' => 'showWarningModal','title' => 'Création de compte','description' => 'Création de compte pour un nouvel établissement','size' => 'md','canClose' => 'true']); ?>

                        <div class="space-y-4">
                            <p class="text-sm text-gray-600">
                                Vous êtes sur le point de créer un <strong>nouvel établissement</strong>
                                (<strong><?php echo e($merchant_name); ?></strong>).
                            </p>

                            <div class="p-4 bg-red-50 border border-red-200 rounded-lg">
                                <p class="text-sm font-semibold text-red-600 mb-2">
                                    Si vous créez un compte pour un nouvel établissement, toutes les données liées à un ancien établissement seront supprimées :
                                </p>
                                <ul class="text-sm text-gray-700 list-disc list-inside space-y-1">
                                    <li>Comptes utilisateurs</li>
                                    <li>Produits et inventaire</li>
                                    <li>Clients et fournisseurs</li>
                                    <li>Ventes et achats</li>
                                    <li>Toutes les autres données</li>
                                </ul>
                            </div>

                            <p class="text-sm font-semibold text-gray-800">
                                Voulez-vous vraiment continuer ?
                            </p>
                        </div>

                         <?php $__env->slot('footer', null, []); ?> 
                            <div class="flex gap-3">
                                <?php if (isset($component)) { $__componentOriginal26cec1ed531c681893e5ab894ddc394f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal26cec1ed531c681893e5ab894ddc394f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.button','data' => ['variant' => 'danger','class' => 'flex-1 flex align-items-center','wire:click' => 'register','disabled' => $loading]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['variant' => 'danger','class' => 'flex-1 flex align-items-center','wire:click' => 'register','disabled' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($loading)]); ?>
                                    <span wire:loading.remove>Oui, continuer</span>
                                    <span wire:loading wire:target="register">
                                        <?php if (isset($component)) { $__componentOriginal3048a2352e6e4266e4d8d3540589865a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3048a2352e6e4266e4d8d3540589865a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.spinner','data' => ['size' => 'sm']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.spinner'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['size' => 'sm']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3048a2352e6e4266e4d8d3540589865a)): ?>
<?php $attributes = $__attributesOriginal3048a2352e6e4266e4d8d3540589865a; ?>
<?php unset($__attributesOriginal3048a2352e6e4266e4d8d3540589865a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3048a2352e6e4266e4d8d3540589865a)): ?>
<?php $component = $__componentOriginal3048a2352e6e4266e4d8d3540589865a; ?>
<?php unset($__componentOriginal3048a2352e6e4266e4d8d3540589865a); ?>
<?php endif; ?>
                                        <span class="ml-2">Création en cours...</span>
                                    </span>
                                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal26cec1ed531c681893e5ab894ddc394f)): ?>
<?php $attributes = $__attributesOriginal26cec1ed531c681893e5ab894ddc394f; ?>
<?php unset($__attributesOriginal26cec1ed531c681893e5ab894ddc394f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal26cec1ed531c681893e5ab894ddc394f)): ?>
<?php $component = $__componentOriginal26cec1ed531c681893e5ab894ddc394f; ?>
<?php unset($__componentOriginal26cec1ed531c681893e5ab894ddc394f); ?>
<?php endif; ?>
                            </div>
                         <?php $__env->endSlot(); ?>
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald996639ab4fb79d3c313ff4ec16a2cba)): ?>
<?php $attributes = $__attributesOriginald996639ab4fb79d3c313ff4ec16a2cba; ?>
<?php unset($__attributesOriginald996639ab4fb79d3c313ff4ec16a2cba); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald996639ab4fb79d3c313ff4ec16a2cba)): ?>
<?php $component = $__componentOriginald996639ab4fb79d3c313ff4ec16a2cba; ?>
<?php unset($__componentOriginald996639ab4fb79d3c313ff4ec16a2cba); ?>
<?php endif; ?>
                </div>

                <div class="mt-4">
                    <?php if (isset($component)) { $__componentOriginalb8a61dc3cc5465365f8da62a3465be9a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb8a61dc3cc5465365f8da62a3465be9a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.link','data' => ['size' => 'sm','href' => ''.e(route('login')).'','wire:navigate' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['size' => 'sm','href' => ''.e(route('login')).'','wire:navigate' => true]); ?>
                        Déjà un compte ? Se connecter
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb8a61dc3cc5465365f8da62a3465be9a)): ?>
<?php $attributes = $__attributesOriginalb8a61dc3cc5465365f8da62a3465be9a; ?>
<?php unset($__attributesOriginalb8a61dc3cc5465365f8da62a3465be9a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb8a61dc3cc5465365f8da62a3465be9a)): ?>
<?php $component = $__componentOriginalb8a61dc3cc5465365f8da62a3465be9a; ?>
<?php unset($__componentOriginalb8a61dc3cc5465365f8da62a3465be9a); ?>
<?php endif; ?>
                </div>

            </form>
        </div>



        <footer class="absolute bottom-0 left-0 right-0">
            <div class="flex justify-center items-center">
                <p class="text-sm text-gray-500">Copyright © 2025 Ango. Tous droits réservés.</p>
            </div>
        </footer>

    </div>

</div>
<?php /**PATH D:\WORK\MAARIFA\ANGO\DESKTOP\V4\ango-desktop\resources\views/livewire/auth/register.blade.php ENDPATH**/ ?>