@php $logo = \App\Models\Utility::get_file('logo/'); if (Auth::user()->type == 'admin') { $setting = App\Models\Utility::getAdminPaymentSettings(); if ($setting['color']) { $color = $setting['color']; } else { $color = 'theme-3'; } $dark_mode = $setting['cust_darklayout']; $cust_theme_bg = $setting['cust_theme_bg']; // $SITE_RTL = env('SITE_RTL'); $SITE_RTL = $setting['site_rtl']; } else { $setting = App\Models\Utility::getcompanySettings($currentWorkspace->id); $color = $setting->theme_color; $dark_mode = $setting->cust_darklayout; $SITE_RTL = $setting->site_rtl; $cust_theme_bg = $setting->cust_theme_bg; } $meta_setting = App\Models\Utility::getAdminPaymentSettings(); $meta_images = \App\Models\Utility::get_file('uploads/logo/'); $settings = App\Models\Utility::getAdminPaymentSettings(); if ($color == '' || $color == null) { $color = $settings['color']; } if ($dark_mode == '' || $dark_mode == null) { $dark_mode = $settings['cust_darklayout']; } if ($cust_theme_bg == '' || $dark_mode == null) { $cust_theme_bg = $settings['cust_theme_bg']; } if ($SITE_RTL == '' || $SITE_RTL == null) { $SITE_RTL = env('SITE_RTL'); } if (\App::getLocale() == 'ar' || \App::getLocale() == 'he') { $SITE_RTL = 'on'; } @endphp @if (trim($__env->yieldContent('page-title')) && Auth::user()->type == 'admin') {{ config('app.name', 'Taskly') }} -@yield('page-title') @else {{ isset($currentWorkspace->company) && $currentWorkspace->company != '' ? $currentWorkspace->company : config('app.name', 'Taskly') }} -@yield('page-title') @endif @if (Auth::user()->type == 'admin') @else @endif {{-- --}} @stack('css-page') @if ($SITE_RTL == 'on') @endif @if ($dark_mode == 'on') @else @endif @php if (Auth::user()->type == 'admin') { $color = !empty($setting['color']) ? $setting['color'] : 'theme-3'; if (isset($setting['color_flag']) && $setting['color_flag'] == 'true') { $color = 'custom-color'; } else { $color = $color; } } else { $color = !empty($setting['theme_color']) ? $setting['theme_color'] : 'theme-3'; if (isset($setting['color_flag']) && $setting['color_flag'] == 'true') { $color = 'custom-color'; } else { $color = $color; } } @endphp @if ($dark_mode == 'on') @else @endif
@if (Auth::user()->getGuard() == 'client') @else @endif
@include('partials.sidebar') @include('partials.topnav')
@yield('content')
@if (Auth::user()->type != 'admin') @endif @php \App::setLocale(env('DEFAULT_LANG')); $currantLang = 'en'; @endphp @if (env('CHAT_MODULE') == 'yes' && isset($currentWorkspace) && $currentWorkspace) @auth('web') {{-- Pusher JS --}} {{-- End Pusher JS --}} @endauth @endif {{-- --}} {{-- --}} @if ($meta_setting['enable_cookie'] == 'on') @include('layouts.cookie_consent') @endif {{-- @if (env('gdpr_cookie') == 'on') @endif --}} @if (isset($currentWorkspace) && $currentWorkspace) @endif {{-- --}} @stack('scripts') @stack('script-page') @if (Session::has('success')) @endif @if (Session::has('error')) @endif @include('partials.footer') @if (Auth::user()->getGuard() != 'client' && Auth::user()->type != 'admin') @include('Chatify::layouts.footerLinks') @endif