File manager - Edit - /var/www/payraty/accounting_main/storage/framework/views/c01f2777e7b1cbaab668607636dbab0c.php
Back
<?php $profile = asset(Storage::url('uploads/avatar/')); ?> <?php $__env->startPush('script-page'); ?> <script> $(document).on('click', '#billing_data', function() { $("[name='shipping_name']").val($("[name='billing_name']").val()); $("[name='shipping_country']").val($("[name='billing_country']").val()); $("[name='shipping_state']").val($("[name='billing_state']").val()); $("[name='shipping_city']").val($("[name='billing_city']").val()); $("[name='shipping_phone']").val($("[name='billing_phone']").val()); $("[name='shipping_zip']").val($("[name='billing_zip']").val()); $("[name='shipping_address']").val($("[name='billing_address']").val()); }) </script> <?php $__env->stopPush(); ?> <?php $__env->startSection('breadcrumb'); ?> <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Dashboard')); ?> </a></li> <li class="breadcrumb-item active"><?php echo e(__('Vendor')); ?></li> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-md-12"> <div class="mt-2 p-4 rounded" style="background: #F0F2F5; margin-bottom: 25px"> <div class="d-flex justify-content-between"> <div> <h3 class="h5 text-dark font-weight-semibold">Vendor</h3> <div class="mt-2"> <h3 class="h6 text-muted">Vendor Summary</h3> </div> </div> <div class="d-flex justify-content-end align-items-center gap-3 mt-3 mt-lg-0"> <a href="#" data-size="xl" data-url="<?php echo e(route('vender.create')); ?>" data-ajax-popup="true" data-title="<?php echo e(__('Create New Vendor')); ?>" data-bs-toggle="tooltip" title="<?php echo e(__('Create')); ?>" class="btn btn-outline-primary-dark d-flex align-items-center"> <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M12 5V19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M5 12H19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </svg> <span class="ms-2">Add New Vendor</span> </a> <a href="<?php echo e(route('vender.export')); ?>" class="btn btn-outline-dark d-flex align-items-center"> <svg width="18" height="18" viewBox="0 0 18 18" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M6.5325 5.78267L8.25 4.05767V11.2502C8.25 11.4491 8.32902 11.6398 8.46967 11.7805C8.61032 11.9211 8.80109 12.0002 9 12.0002C9.19891 12.0002 9.38968 11.9211 9.53033 11.7805C9.67098 11.6398 9.75 11.4491 9.75 11.2502V4.05767L11.4675 5.78267C11.5372 5.85296 11.6202 5.90876 11.7116 5.94684C11.803 5.98491 11.901 6.00452 12 6.00452C12.099 6.00452 12.197 5.98491 12.2884 5.94684C12.3798 5.90876 12.4628 5.85296 12.5325 5.78267C12.6028 5.71294 12.6586 5.62999 12.6967 5.5386C12.7347 5.4472 12.7543 5.34918 12.7543 5.25017C12.7543 5.15116 12.7347 5.05313 12.6967 4.96173C12.6586 4.87034 12.6028 4.78739 12.5325 4.71767L9.5325 1.71767C9.46117 1.64939 9.37706 1.59586 9.285 1.56017C9.1024 1.48515 8.8976 1.48515 8.715 1.56017C8.62294 1.59586 8.53883 1.64939 8.4675 1.71767L5.4675 4.71767C5.39757 4.7876 5.3421 4.87061 5.30426 4.96198C5.26641 5.05335 5.24693 5.15127 5.24693 5.25017C5.24693 5.34906 5.26641 5.44699 5.30426 5.53835C5.3421 5.62972 5.39757 5.71274 5.4675 5.78267C5.53743 5.8526 5.62045 5.90807 5.71181 5.94591C5.80318 5.98376 5.90111 6.00323 6 6.00323C6.09889 6.00323 6.19682 5.98376 6.28819 5.94591C6.37955 5.90807 6.46257 5.8526 6.5325 5.78267ZM15.75 10.5002C15.5511 10.5002 15.3603 10.5792 15.2197 10.7198C15.079 10.8605 15 11.0513 15 11.2502V14.2502C15 14.4491 14.921 14.6398 14.7803 14.7805C14.6397 14.9212 14.4489 15.0002 14.25 15.0002H3.75C3.55109 15.0002 3.36032 14.9212 3.21967 14.7805C3.07902 14.6398 3 14.4491 3 14.2502V11.2502C3 11.0513 2.92098 10.8605 2.78033 10.7198C2.63968 10.5792 2.44891 10.5002 2.25 10.5002C2.05109 10.5002 1.86032 10.5792 1.71967 10.7198C1.57902 10.8605 1.5 11.0513 1.5 11.2502V14.2502C1.5 14.8469 1.73705 15.4192 2.15901 15.8412C2.58097 16.2631 3.15326 16.5002 3.75 16.5002H14.25C14.8467 16.5002 15.419 16.2631 15.841 15.8412C16.2629 15.4192 16.5 14.8469 16.5 14.2502V11.2502C16.5 11.0513 16.421 10.8605 16.2803 10.7198C16.1397 10.5792 15.9489 10.5002 15.75 10.5002Z" fill="currentColor"/> </svg> <span class="ms-2">Export</span> </a> <a href="#" data-url="<?php echo e(route('vender.file.import')); ?>" data-ajax-popup="true" data-bs-toggle="tooltip" title="<?php echo e(__('Import')); ?>" class="btn btn-outline-dark d-flex align-items-center"> <svg width="18" height="18" viewBox="0 0 18 18" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M15.75 10.5C15.5511 10.5 15.3603 10.579 15.2197 10.7197C15.079 10.8603 15 11.0511 15 11.25V14.25C15 14.4489 14.921 14.6397 14.7803 14.7803C14.6397 14.921 14.4489 15 14.25 15H3.75C3.55109 15 3.36032 14.921 3.21967 14.7803C3.07902 14.6397 3 14.4489 3 14.25V11.25C3 11.0511 2.92098 10.8603 2.78033 10.7197C2.63968 10.579 2.44891 10.5 2.25 10.5C2.05109 10.5 1.86032 10.579 1.71967 10.7197C1.57902 10.8603 1.5 11.0511 1.5 11.25V14.25C1.5 14.8467 1.73705 15.419 2.15901 15.841C2.58097 16.2629 3.15326 16.5 3.75 16.5H14.25C14.8467 16.5 15.419 16.2629 15.841 15.841C16.2629 15.419 16.5 14.8467 16.5 14.25V11.25C16.5 11.0511 16.421 10.8603 16.2803 10.7197C16.1397 10.579 15.9489 10.5 15.75 10.5ZM8.4675 11.7825C8.53883 11.8508 8.62294 11.9043 8.715 11.94C8.80478 11.9797 8.90185 12.0002 9 12.0002C9.09815 12.0002 9.19522 11.9797 9.285 11.94C9.37706 11.9043 9.46117 11.8508 9.5325 11.7825L12.5325 8.7825C12.6737 8.64127 12.7531 8.44973 12.7531 8.25C12.7531 8.05027 12.6737 7.85873 12.5325 7.7175C12.3913 7.57627 12.1997 7.49693 12 7.49693C11.8003 7.49693 11.6087 7.57627 11.4675 7.7175L9.75 9.4425V2.25C9.75 2.05109 9.67098 1.86032 9.53033 1.71967C9.38968 1.57902 9.19891 1.5 9 1.5C8.80109 1.5 8.61032 1.57902 8.46967 1.71967C8.32902 1.86032 8.25 2.05109 8.25 2.25V9.4425L6.5325 7.7175C6.46257 7.64757 6.37955 7.5921 6.28819 7.55426C6.19682 7.51641 6.09889 7.49693 6 7.49693C5.90111 7.49693 5.80318 7.51641 5.71181 7.55426C5.62045 7.5921 5.53743 7.64757 5.4675 7.7175C5.39757 7.78743 5.3421 7.87045 5.30426 7.96181C5.26641 8.05318 5.24693 8.15111 5.24693 8.25C5.24693 8.34889 5.26641 8.44682 5.30426 8.53819C5.3421 8.62955 5.39757 8.71257 5.4675 8.7825L8.4675 11.7825Z" fill="currentColor"/> </svg> <span class="ms-2">Import</span> </a> </div> </div> <div class="mt-4"> <div class="row g-4"> <!-- Quick Statistics Card --> <div class="col-sm-12 col-md-6"> <a href="<?php echo e(route('vender.index')); ?>" class="card border-0 bg-white shadow-sm text-decoration-none"> <div class="card-body d-flex flex-column justify-content-between p-4"> <div class="d-flex align-items-center text-sm text-muted"> <span class="p-2 grey-color rounded-circle"> <img src="<?php echo e(asset('assets/images/svg/all.svg')); ?>" class="w-4 h-4" alt="Employee Icon" /> </span> </div> <dl class="mt-3"> <dt class="h2 text-primary font-weight-bold"> <?php echo e($totalVenders ?? 0); ?> </dt> <dd class="mt-2 text-muted">All Vendors</dd> </dl> </div> </a> </div> <!-- New Employee Card --> <div class="col-sm-12 col-md-6"> <a href="<?php echo e(route('vender.index')); ?>" class="card border-0 bg-white shadow-sm text-decoration-none"> <div class="card-body d-flex flex-column justify-content-between p-4"> <div class="d-flex align-items-center text-sm text-muted"> <span class="p-2 orange-color rounded-circle"> <img src="<?php echo e(asset('assets/images/svg/bi_people.svg')); ?>" class="w-4 h-4" alt="Employee Icon" /> </span> </div> <dl class="mt-3"> <dt class="h2 orange-text font-weight-bold"> <?php echo e($newVenders ?? 0); ?> </dt> <dd class="mt-2 text-muted">New Vendors</dd> </dl> </div> </a> </div> </div> </div> </div> <div class="card"> <div class="card-body table-border-style"> <div class="table-responsive"> <table class="table"> <thead> <tr> <th>#</th> <th><?php echo e(__('Name')); ?></th> <th><?php echo e(__('Contact')); ?></th> <th><?php echo e(__('Email')); ?></th> <th><?php echo e(__('Balance')); ?></th> <th><?php echo e(__('Last Login At')); ?></th> <th><?php echo e(__('Action')); ?></th> </tr> </thead> <tbody> <?php if($venders->isEmpty()): ?> <tr> <td colspan="10" class="text-center"> <img src="<?php echo e(asset('assets/images/no-data.png')); ?>" alt="No Data" style="max-width: 350px; margin-bottom: 50px; margin-top: 150px;"> <p><?php echo e(__('Oops, no vendor yet.')); ?></p> <a href="#" data-size="xl" data-url="<?php echo e(route('customer.create')); ?>" data-ajax-popup="true" data-bs-toggle="tooltip" title="<?php echo e(__('Create')); ?>" data-title="<?php echo e(__('Create Vendor')); ?>" class="btn" style="background-color: #002C77; color: white;"> <i class="ti ti-plus"></i> <span class="ms-2"><?php echo e(__('Create New Vendor')); ?></span> </a> </td> </tr> <?php else: ?> <?php $__currentLoopData = $venders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k => $Vender): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr class="cust_tr" id="vend_detail"> <td class="Id"> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('show vender')): ?> <a href="<?php echo e(route('vender.show', \Crypt::encrypt($Vender['id']))); ?>" class="btn btn-outline-primary"> <?php echo e(Auth::user()->venderNumberFormat($Vender['vender_id'])); ?> </a> <?php else: ?> <a href="#" class="btn btn-outline-primary"> <?php echo e(Auth::user()->venderNumberFormat($Vender['vender_id'])); ?> </a> <?php endif; ?> </td> <td><?php echo e($Vender['name']); ?></td> <td><?php echo e($Vender['contact']); ?></td> <td><?php echo e($Vender['email']); ?></td> <td><?php echo e(\Auth::user()->priceFormat($Vender['balance'])); ?></td> <td> <?php echo e(!empty($Vender->last_login_at) ? $Vender->last_login_at : '-'); ?> </td> <td class="Action"> <span> <?php if($Vender['is_active'] == 0): ?> <i class="fa fa-lock" title="Inactive"></i> <?php else: ?> <?php if($Vender->is_enable_login == 0 && $Vender->password == null): ?> <div class="action-btn bg-primary ms-2"> <a href="#" class="mx-3 btn btn-sm align-items-center login_enable" data-url="<?php echo e(route('vender.reset', \Crypt::encrypt($Vender['id']))); ?>" data-ajax-popup="true" data-size="md" data-bs-toggle="tooltip" title="<?php echo e(__('Forgot Password')); ?>" data-title="<?php echo e(__('Reset Password')); ?>"> <i class="ti ti-key text-white"></i> </a> </div> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('show vender')): ?> <div class="action-btn bg-warning ms-2"> <a href="<?php echo e(route('vender.show', \Crypt::encrypt($Vender['id']))); ?>" class="mx-3 btn btn-sm align-items-center" data-bs-toggle="tooltip" title="<?php echo e(__('View')); ?>"> <i class="ti ti-eye text-white text-white"></i> </a> </div> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit vender')): ?> <div class="action-btn bg-info ms-2"> <a href="#" class="mx-3 btn btn-sm align-items-center" data-size="xl" data-title="<?php echo e(__('Edit Vendor')); ?>" data-url="<?php echo e(route('vender.edit', $Vender['id'])); ?>" data-ajax-popup="true" title="<?php echo e(__('Edit')); ?>" data-bs-toggle="tooltip" data-original-title="<?php echo e(__('Edit')); ?>"> <i class="ti ti-edit text-white"></i> </a> </div> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delete vender')): ?> <div class="action-btn bg-danger ms-2"> <?php echo Form::open([ 'method' => 'DELETE', 'route' => ['vender.destroy', $Vender['id']], 'id' => 'delete-form-' . $Vender['id'], ]); ?> <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" data-original-title="<?php echo e(__('Delete')); ?>" title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?') . '|' . __('This action can not be undone. Do you want to continue?')); ?>" data-confirm-yes="document.getElementById('delete-form-<?php echo e($Vender['id']); ?>').submit();"> <i class="ti ti-trash text-white text-white"></i> </a> <?php echo Form::close(); ?> </div> <?php endif; ?> <?php endif; ?> </span> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script-page'); ?> <script> $(document).on('change', '#password_switch', function() { if ($(this).is(':checked')) { $('.ps_div').removeClass('d-none'); $('#password').attr("required", true); } else { $('.ps_div').addClass('d-none'); $('#password').val(null); $('#password').removeAttr("required"); } }); $(document).on('click', '.login_enable', function() { setTimeout(function() { $('.modal-body').append($('<input>', { type: 'hidden', val: 'true', name: 'login_enable' })); }, 2000); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/payraty/accounting_main/resources/views/vender/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings