%PDF- %PDF-
Direktori : /home/silvzytp/calling_code/storage/framework/views/ |
Current File : /home/silvzytp/calling_code/storage/framework/views/7d554efed5fdb0bd5b72fb9036d5905777b6ccaa.php |
<?php $__env->startSection('title', $siteTitle); ?> <?php $__env->startSection('action'); ?> <button type="submit" class="btn btn-sm btn-success submit-form-btn"><i class="fa fa-floppy-o"></i> <?php if(isset($manager)): ?> Update <?php else: ?> Submit <?php endif; ?> </button> <?php $__env->stopSection(); ?> <?php $__env->startPush('styles'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-12"> <form action="<?php echo e(isset($manager) ? route(routeName().'.managers.update', $manager->id) : route(routeName().'.managers.store')); ?>" method="POST" id="form" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($manager)): ?> <?php echo method_field('PUT'); ?> <input type="hidden" name="updated_at" value="<?php echo e($manager->id); ?>"> <?php endif; ?> <div class="row"> <div class="col-md-8"> <div class="card"> <div class="card-body"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['name' => 'full_name','labelName' => 'Full Name','required' => 'required','placeholder' => 'Enter name','value' => ''.e($manager->name ?? old('full_name')).'','error' => 'full_name']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.inputbox'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'full_name','labelName' => 'Full Name','required' => 'required','placeholder' => 'Enter name','value' => ''.e($manager->name ?? old('full_name')).'','error' => 'full_name']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['type' => 'email','name' => 'email','labelName' => 'Email','required' => 'required','placeholder' => 'Enter Email','value' => ''.e($manager->email ?? old('email')).'','error' => 'email']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.inputbox'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['type' => 'email','name' => 'email','labelName' => 'Email','required' => 'required','placeholder' => 'Enter Email','value' => ''.e($manager->email ?? old('email')).'','error' => 'email']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['name' => 'phone','labelName' => 'Phone','placeholder' => 'Enter Phone Number','value' => ''.e($manager->phone_no ?? old('phone')).'','error' => 'phone']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.inputbox'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'phone','labelName' => 'Phone','placeholder' => 'Enter Phone Number','value' => ''.e($manager->phone_no ?? old('phone')).'','error' => 'phone']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <div class="row"> <div class="col-md-10"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputicon','data' => ['type' => 'password','name' => 'password','labelName' => 'Password','required' => 'required','placeholder' => 'xxxxxxxx','value' => ''.isset($manager) ? $manager->password_text : ''.'','icon' => 'fa fa-eye','error' => 'password','addonClass' => 'password-text cursor-pointer']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.inputicon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['type' => 'password','name' => 'password','labelName' => 'Password','required' => 'required','placeholder' => 'xxxxxxxx','value' => ''.isset($manager) ? $manager->password_text : ''.'','icon' => 'fa fa-eye','error' => 'password','addonClass' => 'password-text cursor-pointer']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> <div class="col-md-2 text-right"> <label for="" class="opacity-0 d-block">hello</label> <button type="button" class="btn btn-md btn-primary generate-pass">Generate</button> </div> </div> </div> </div> </div> <div class="col-md-4"> <div class="card"> <div class="card-body"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.selectbox','data' => ['labelName' => 'Role','name' => 'role','required' => 'required','error' => 'role']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.selectbox'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['labelName' => 'Role','name' => 'role','required' => 'required','error' => 'role']); ?> <option value="">-- Select Role --</option> <option value="3" <?php if(isset($manager)): ?> selected <?php endif; ?>>Manager</option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.selectbox','data' => ['labelName' => 'Status','name' => 'status','required' => 'required','error' => 'status']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.selectbox'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['labelName' => 'Status','name' => 'status','required' => 'required','error' => 'status']); ?> <option value="">-- Select Status --</option> <option value="1" <?php if(isset($manager)): ?> <?php echo e($manager->status == 1 ? 'selected' : ''); ?> <?php endif; ?>>Enabled</option> <option value="2" <?php if(isset($manager)): ?> <?php echo e($manager->status == 2 ? 'selected' : ''); ?> <?php endif; ?>>Disabled</option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['type' => 'file','name' => 'profile','labelName' => 'Profile','error' => 'profile']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.inputbox'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['type' => 'file','name' => 'profile','labelName' => 'Profile','error' => 'profile']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> </div> </div> </div> </form> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> // random password generate function generatePass() { let chars = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*"; let passLength = 8; let password = ""; for (let i = 0; i < passLength; i++) password += chars[Math.floor(Math.random() * chars.length)]; return password; } // random password value $(document).on('click','button.generate-pass', function(){ $('input[name="password"]').val(generatePass()); }) // password input type text $(document).on('click','.password-text',function(){ if($(this).children().hasClass('fa-eye')){ $(this).children().removeClass('fa-eye'); $(this).children().addClass('fa-eye-slash'); $('input[name="password"]').attr('type','text'); }else{ $(this).children().removeClass('fa-eye-slash'); $(this).children().addClass('fa-eye'); $('input[name="password"]').attr('type','password'); } }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/silvzytp/calling_code/resources/views/backend/pages/manager/form.blade.php ENDPATH**/ ?>