|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/account.appointkrypt.com/storage/framework/views/ |
Upload File : |
<header
class="dash-header <?php echo e(empty($company_settings['site_transparent']) || $company_settings['site_transparent'] == 'on' ? 'transprent-bg' : ''); ?> ">
<div class="header-wrapper">
<div class="me-auto dash-mob-drp">
<ul class="list-unstyled">
<li class="dash-h-item mob-hamburger">
<a href="#!" class="dash-head-link" id="mobile-collapse">
<div class="hamburger hamburger--arrowturn">
<div class="hamburger-box">
<div class="hamburger-inner"></div>
</div>
</div>
</a>
</li>
<li class="dropdown dash-h-item drp-company">
<a class="dash-head-link dropdown-toggle arrow-none me-0" data-bs-toggle="dropdown" href="#"
role="button" aria-haspopup="false"aria-expanded="false">
<?php if(!empty(Auth::user()->avatar)): ?>
<span class="theme-avtar">
<img alt="#"
src="<?php echo e(check_file(Auth::user()->avatar) ? get_file(Auth::user()->avatar) : ''); ?>"
class="img-fluid rounded-circle w-100">
</span>
<?php else: ?>
<span class="theme-avtar"><?php echo e(substr(Auth::user()->name, 0, 1)); ?></span>
<?php endif; ?>
<span class="hide-mob ms-2"><?php echo e(Auth::user()->name); ?></span>
<i class="ti ti-chevron-down drp-arrow nocolor hide-mob"></i>
</a>
<div class="dropdown-menu dash-h-dropdown">
<?php if (app('laratrust')->hasPermission('user profile manage')) : ?>
<a href="<?php echo e(route('profile')); ?>" class="dropdown-item">
<i class="ti ti-user"></i>
<span><?php echo e(__('Profile')); ?></span>
</a>
<?php endif; // app('laratrust')->permission ?>
<a href="<?php echo e(route('logout')); ?>"
onclick="event.preventDefault(); document.getElementById('frm-logout').submit();"
class="dropdown-item">
<i class="ti ti-power"></i>
<span><?php echo e(__('Logout')); ?></span>
</a>
<form id="frm-logout" action="<?php echo e(route('logout')); ?>" method="POST" class="d-none">
<?php echo e(csrf_field()); ?>
</form>
</div>
</li>
</ul>
</div>
<div class="ms-auto">
<ul class="list-unstyled">
<?php if (is_impersonating($guard = null)) : ?>
<li class="dropdown dash-h-item drp-company">
<a class="btn btn-danger btn-sm me-3" href="<?php echo e(route('exit.company')); ?>"><i class="ti ti-ban"></i>
<?php echo e(__('Exit Company Login')); ?>
</a>
</li>
<?php endif; ?>
<?php if (app('laratrust')->hasPermission('business create')) : ?>
<?php if(PlanCheck('Business', Auth::user()->id) == true): ?>
<li class="dash-h-item">
<a href="#!" class="dash-head-link dropdown-toggle arrow-none me-0 cust-btn"
data-url="<?php echo e(route('business.create')); ?>" data-ajax-popup="true"
data-title="<?php echo e(__('Create New Business')); ?>">
<i class="ti ti-circle-plus"></i>
<span class="hide-mob"><?php echo e(__('Create Business')); ?></span>
</a>
</li>
<?php endif; ?>
<?php endif; // app('laratrust')->permission ?>
<?php if (app('laratrust')->hasPermission('business manage')) : ?>
<li class="dropdown dash-h-item drp-language">
<a class="dash-head-link dropdown-toggle arrow-none me-0 cust-btn" data-bs-toggle="dropdown"
href="#" role="button" aria-haspopup="false" aria-expanded="false"
data-bs-placement="bottom" data-bs-original-title="Select your bussiness">
<i class="ti ti-apps"></i>
<span class="hide-mob"><?php echo e(Auth::user()->ActiveBusinessName()); ?></span>
<i class="ti ti-chevron-down drp-arrow nocolor"></i>
</a>
<div class="dropdown-menu dash-h-dropdown dropdown-menu-end" style="">
<?php $__currentLoopData = getBusiness(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $workspace): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($workspace->id == getActiveBusiness()): ?>
<div class="d-flex justify-content-between bd-highlight">
<a href=" # " class="dropdown-item ">
<i class="ti ti-checks text-primary"></i>
<span><?php echo e($workspace->name); ?></span>
<?php if($workspace->created_by == Auth::user()->id): ?>
<span class="badge bg-dark">
<?php echo e(Auth::user()->roles->first()->name); ?></span>
<?php else: ?>
<span class="badge bg-dark"> <?php echo e(__('Shared')); ?></span>
<?php endif; ?>
</a>
<?php if($workspace->created_by == Auth::user()->id): ?>
<?php if (app('laratrust')->hasPermission('business edit')) : ?>
<div class="action-btn mt-2">
<a data-url="<?php echo e(route('business.edit', $workspace->id)); ?>"
class="mx-3 btn" data-ajax-popup="true"
data-title="<?php echo e(__('Edit Business Name')); ?>" data-toggle="tooltip"
data-original-title="<?php echo e(__('Edit')); ?>">
<i class="ti ti-pencil text-success"></i>
</a>
</div>
<?php endif; // app('laratrust')->permission ?>
<?php endif; ?>
</div>
<?php else: ?>
<?php
$route = ($workspace->is_disable == 1) ? route('business.change', $workspace->id) : '#';
?>
<div class="d-flex justify-content-between bd-highlight">
<a href="<?php echo e($route); ?>" class="dropdown-item">
<span><?php echo e($workspace->name); ?></span>
<?php if($workspace->created_by == Auth::user()->id): ?>
<span class="badge bg-dark"> <?php echo e(Auth::user()->roles->first()->name); ?></span>
<?php else: ?>
<span class="badge bg-dark"> <?php echo e(__('Shared')); ?></span>
<?php endif; ?>
</a>
<?php if($workspace->is_disable == 0): ?>
<div class="action-btn mt-2">
<i class="ti ti-lock"></i>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php if(getBusiness()->count() > 1): ?>
<?php if (app('laratrust')->hasPermission('business delete')) : ?>
<hr class="dropdown-divider" />
<form id="remove-workspace-form"
action="<?php echo e(route('business.destroy', getActiveBusiness())); ?>" method="POST">
<?php echo csrf_field(); ?>
<?php echo method_field('DELETE'); ?>
<a href="#!" class="dropdown-item remove_workspace">
<i class="ti ti-circle-x"></i>
<span><?php echo e(__('Remove')); ?></span> <br>
<small class="text-danger"><?php echo e(__('Active Business Will Consider')); ?></small>
</a>
</form>
<?php endif; // app('laratrust')->permission ?>
<?php endif; ?>
</div>
</li>
<?php endif; // app('laratrust')->permission ?>
<li class="dropdown dash-h-item drp-language">
<a class="dash-head-link dropdown-toggle arrow-none me-0" data-bs-toggle="dropdown" href="#"
role="button" aria-haspopup="false" aria-expanded="false">
<i class="ti ti-world nocolor"></i>
<span class="drp-text hide-mob"><?php echo e(Str::upper(getActiveLanguage())); ?></span>
<i class="ti ti-chevron-down drp-arrow nocolor"></i>
</a>
<div class="dropdown-menu dash-h-dropdown dropdown-menu-end">
<?php $__currentLoopData = languages(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<a href="<?php echo e(route('lang.change', $key)); ?>"
class="dropdown-item <?php if($key == getActiveLanguage()): ?> text-danger <?php endif; ?>">
<span><?php echo e(Str::ucfirst($language)); ?></span>
</a>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php if(Auth::user()->type == 'super admin'): ?>
<?php if (app('laratrust')->hasPermission('language create')) : ?>
<a href="#" data-url="<?php echo e(route('create.language')); ?>"
class="dropdown-item border-top pt-3 text-primary" data-ajax-popup="true"
data-title="<?php echo e(__('Create New Language')); ?>">
<span><?php echo e(__('Create Language')); ?></span>
</a>
<?php endif; // app('laratrust')->permission ?>
<?php if (app('laratrust')->hasPermission('language manage')) : ?>
<a href="<?php echo e(route('lang.index', [Auth::user()->lang])); ?>"
class="dropdown-item pt-3 text-primary">
<span><?php echo e(__('Manage Languages')); ?></span>
</a>
<?php endif; // app('laratrust')->permission ?>
<?php endif; ?>
</div>
</li>
</ul>
</div>
</div>
</header>
<?php /**PATH /var/www/account.appointkrypt.com/resources/views/partials/header.blade.php ENDPATH**/ ?>