%PDF- %PDF-
Direktori : /home/silvzytp/dsr_code/storage/framework/views/ |
Current File : //home/silvzytp/dsr_code/storage/framework/views/e1762a819a64367dfddf9e8967967d2b3f2d53f4.php |
<?php $__env->startSection('title', $siteTitle); ?> <?php $__env->startSection('action'); ?> <button type="button" class="btn btn-sm btn-success submit-form-btn">Submit</button> <?php $__env->stopSection(); ?> <?php $__env->startPush('styles'); ?> <style> .append-btn button { width: 25px; height: 25px; text-align: center; line-height: 25px; border-radius: 50%; border: 0; font-size: 12px; color: #fff; } </style> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-12"> <form action="<?php echo e(isset($monthly) ? route('app.monthly.update', $monthly->id) : route('app.monthly.store')); ?>" method="POST" id="form" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($monthly)): ?> <?php echo method_field('PUT'); ?> <input type="hidden" name="manager_id" value="<?php echo e($monthly->user_id); ?>"> <input type="hidden" name="data_id" value="<?php echo e($monthly->id); ?>"> <?php endif; ?> <div class="row"> <div class="col-md-12"> <div class="ibox"> <div class="ibox-body"> <div class="row"> <div class="col-md-6 mb-3 mb-md-0"> <div class="form-group" id="date_1"> <label class="font-normal required">Date</label> <div class="input-group date"> <span class="input-group-addon bg-white"><i class="fa fa-calendar"></i></span> <input class="form-control" autofocus autocomplete="off" value="<?php echo e(isset($monthly) ? date_formats($monthly->date, 'm/d/Y') : ''); ?>" name="date" type="text" class="date" > </div> <?php $__errorArgs = ['date']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger"><?php echo e($message); ?></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <?php if(Auth::user()->role->slug == 'admin'): ?> <?php $managers = App\Models\User::where('role_id',3)->select('id','name')->get(); ?> <div class="col-md-6 mb-2"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.selectbox','data' => ['name' => 'manager','onchange' => 'manager_select(this.value)','error' => 'manager','labelName' => 'Manager']] + (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(['name' => 'manager','onchange' => 'manager_select(this.value)','error' => 'manager','labelName' => 'Manager']); ?> <option value="">-- Select Manager --</option> <?php $__empty_1 = true; $__currentLoopData = $managers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $manager): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($manager->id); ?>" <?php if(isset($monthly)): ?> <?php echo e($monthly->user_id == $manager->id ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($manager->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> <div class="col-md-6 mb-3 mb-md-0"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.selectbox','data' => ['name' => 'agent_name','required' => 'required','error' => 'agent_name','labelName' => 'Agent Name']] + (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(['name' => 'agent_name','required' => 'required','error' => 'agent_name','labelName' => 'Agent Name']); ?> <option value="">-- Select Agent --</option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> <?php else: ?> <?php $agents = DB::table('users')->where('manager_id',Auth::id())->get(); ?> <div class="col-md-6 mb-2"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.selectbox','data' => ['name' => 'agent_name','required' => 'required','error' => 'agent_name','labelName' => 'Agent Name']] + (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(['name' => 'agent_name','required' => 'required','error' => 'agent_name','labelName' => 'Agent Name']); ?> <option value="">-- Select Agent --</option> <?php $__empty_1 = true; $__currentLoopData = $agents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $agent): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($agent->name); ?>" <?php if(isset($monthly)): ?> <?php echo e($monthly->agent_name == $agent->name ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($agent->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> <?php endif; ?> <div class="col-md-6 mb-3 mb-md-0"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['name' => 'expected_meeting','labelName' => 'Expected Meeting','value' => ''.e($monthly->expected_meeting ?? old('expected_meeting')).'','error' => 'expected_meeting']] + (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' => 'expected_meeting','labelName' => 'Expected Meeting','value' => ''.e($monthly->expected_meeting ?? old('expected_meeting')).'','error' => 'expected_meeting']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> <div class="col-md-6 mb-3 mb-md-0"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['name' => 'project_name','labelName' => 'Project Name','value' => ''.e($monthly->project_name ?? old('project_name')).'','error' => 'project_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' => 'project_name','labelName' => 'Project Name','value' => ''.e($monthly->project_name ?? old('project_name')).'','error' => 'project_name']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> <div class="col-md-6 mb-3 mb-md-0"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['name' => 'expected_sale','labelName' => 'Expected Sale','value' => ''.e($monthly->expected_sale ?? old('expected_sale')).'','error' => 'expected_sale']] + (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' => 'expected_sale','labelName' => 'Expected Sale','value' => ''.e($monthly->expected_sale ?? old('expected_sale')).'','error' => 'expected_sale']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> <div class="col-md-6 mb-3 mb-md-0"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['name' => 'meeting_done','labelName' => 'Meeting Done','value' => ''.e($monthly->meeting_done ?? old('meeting_done')).'','error' => 'meeting_done']] + (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' => 'meeting_done','labelName' => 'Meeting Done','value' => ''.e($monthly->meeting_done ?? old('meeting_done')).'','error' => 'meeting_done']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> <div class="col-md-6 mb-3 mb-md-0"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['name' => 'sale','labelName' => 'Sale','value' => ''.e($monthly->sale ?? old('sale')).'','error' => 'sale']] + (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' => 'sale','labelName' => 'Sale','value' => ''.e($monthly->sale ?? old('sale')).'','error' => 'sale']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> </div> </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'); } }); <?php if(Auth::user()->role->slug == 'admin'): ?> // manager by agent function manager_select(manager_id){ if (manager_id != '') { $.ajax({ url: '<?php echo e(route("app.monthly.manager.select")); ?>', type: 'POST', data:{_token:_token,manager_id:manager_id}, dataType: 'JSON', cache: false, success: function(response){ $('select#agent_name').html(response); }, error: function(error){ console.log(error); } }); } } <?php if(isset($monthly)): ?> function agent_selected(){ $.ajax({ type: "POST", url: "<?php echo e(route('app.monthly.agent.select')); ?>", data: {_token:_token,manager_id:$('input[name="manager_id"]').val(),data_id:$('input[name="data_id"]').val()}, dataType: "json", success: function (response) { if (response) { $('select#agent_name').append(response); } } }); } agent_selected() <?php endif; ?> <?php endif; ?> // Dynamic permission field add remove var count = 0; function dynamicPermissionField(row){ var html = ` <div class="agent-box mb-3"> <div class="append-btn text-right mb-2"> <button type="button" class="bg-danger add_permission remove_permission"><i class="fa fa-minus fa-sm"></i></button> </div> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['name' => 'agent[`+row+`][name]','class' => 'agent_`+row+`_name','placeholder' => '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' => 'agent[`+row+`][name]','class' => 'agent_`+row+`_name','placeholder' => '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' => ['name' => 'agent[`+row+`][email]','class' => 'agent_`+row+`_email','placeholder' => '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(['name' => 'agent[`+row+`][email]','class' => 'agent_`+row+`_email','placeholder' => 'Email']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <div class="form-group"> <input type="number" name="agent[`+row+`][target]" id="target-amount" class="form-control agent_`+row+`_target" placeholder="Target"/> </div> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.textarea','data' => ['name' => 'agent[`+row+`][description]','class' => 'agent_`+row+`_description','placeholder' => 'Description']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.textarea'); ?> <?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' => 'agent[`+row+`][description]','class' => 'agent_`+row+`_description','placeholder' => 'Description']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div>`; $('#permission_table').append(html); } // add agent field $(document).on('click', '#add_permission', function () { count++; dynamicPermissionField(count); }); // remove agent field $(document).on('click', '.remove_permission', function () { count--; $(this).closest('div.agent-box').remove(); totalTargetCalculate(); }); // ***** total target ***** // $(document).on('keyup', '.agent-box input#target-amount', function(){ totalTargetCalculate(); }); // calculation function totalTargetCalculate(){ var total = 0; $('input#target-amount').each(function(){ total += parseFloat($(this).val() || 0); }); var totalA = total == 0 ? '0.00' : total; $('input.total_amound').val(total); $('.manager-target').text(totalA); } $(document).on('click', 'button.submit-btn', function(){ var form = document.getElementById('member-form'); var formData = new FormData(form); $.ajax({ url: "<?php echo e(route('app.monthly.store')); ?>", type: "post", data: formData, dataType: false, contentType: false, processData: false, cache: false, success: function(response){ // validation form $('#member-form').find('.error-msg').remove(); if(response.status == false){ $.each(response.errors, function (key, value) { $('#member-form .'+key).parent().append('<small class="error-msg text-danger d-block">'+value+'</small>'); }); }else{ if(response.status == 'success'){ window.location.reload(); flashMessage(response.status, response.message); }else{ flashMessage(response.status, response.message); } } }, error: function(error){ console.log(error); } }); }); $('#date_1 .input-group.date').datepicker({ todayBtn: "linked", keyboardNavigation: false, forceParse: false, calendarWeeks: true, autoclose: true, endDate: '-0d' }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/silvzytp/dsr_code/resources/views/backend/member/pages/monthly_commit/form.blade.php ENDPATH**/ ?>