BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
app.imagivibe.com
/
storage
/
framework
/
views
📤 Upload
📝 New File
📁 New Folder
Close
Editing: fa2efc44ed344cc411122ce1e6e1d8d9.php
<?php $banner = \App\Extensions\OnboardingPro\System\Models\Banner::query()->where('status', true)->first(); $style_string = ''; if ($banner) { if (!empty($banner->background_color)) { $style_string .= '.top-banner { background-color: ' . $banner->background_color . '; }'; } if (!empty($banner->text_color)) { $style_string .= '.top-banner { color: ' . $banner->text_color . '; }'; } } ?> <?php if(filled($style_string)): ?> <style> <?php echo e($style_string); ?> </style> <?php endif; ?> <?php if(auth()->guard()->check()): ?> <?php if(auth()->user()->type === \App\Enums\Roles::USER && $banner): ?> <?php $display = \App\Extensions\OnboardingPro\System\Models\BannerUser::query() ->where('user_id', auth()->user()->id) ->where('banner_id', $banner->id) ->first(); ?> <?php if($banner->permanent == 0 && !$display): ?> <?php if (isset($component)) { $__componentOriginalb5e767ad160784309dfcad41e788743b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb5e767ad160784309dfcad41e788743b = $attributes; } ?> <?php $component = App\View\Components\Alert::resolve(['size' => 'xs'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('alert'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Alert::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'top-banner relative z-[9999] items-center rounded-md py-3 shadow-md','id' => 'banner-extension']); ?> <div class="flex w-full grow items-center justify-between gap-3"> <p class="m-0 text-lg font-semibold"> <?php echo e($banner->description); ?> </p> <?php if (isset($component)) { $__componentOriginale67687e3e4e61f963b25a6bcf3983629 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginale67687e3e4e61f963b25a6bcf3983629 = $attributes; } ?> <?php $component = App\View\Components\Button::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('button'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Button::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'rounded-md bg-white px-4 py-2 text-sm transition','onclick' => 'sendRequestBanner('.e($banner->id).')']); ?> <?php echo e(__('Close')); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginale67687e3e4e61f963b25a6bcf3983629)): ?> <?php $attributes = $__attributesOriginale67687e3e4e61f963b25a6bcf3983629; ?> <?php unset($__attributesOriginale67687e3e4e61f963b25a6bcf3983629); ?> <?php endif; ?> <?php if (isset($__componentOriginale67687e3e4e61f963b25a6bcf3983629)): ?> <?php $component = $__componentOriginale67687e3e4e61f963b25a6bcf3983629; ?> <?php unset($__componentOriginale67687e3e4e61f963b25a6bcf3983629); ?> <?php endif; ?> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalb5e767ad160784309dfcad41e788743b)): ?> <?php $attributes = $__attributesOriginalb5e767ad160784309dfcad41e788743b; ?> <?php unset($__attributesOriginalb5e767ad160784309dfcad41e788743b); ?> <?php endif; ?> <?php if (isset($__componentOriginalb5e767ad160784309dfcad41e788743b)): ?> <?php $component = $__componentOriginalb5e767ad160784309dfcad41e788743b; ?> <?php unset($__componentOriginalb5e767ad160784309dfcad41e788743b); ?> <?php endif; ?> <?php elseif($banner->permanent == 1): ?> <?php if (isset($component)) { $__componentOriginalb5e767ad160784309dfcad41e788743b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb5e767ad160784309dfcad41e788743b = $attributes; } ?> <?php $component = App\View\Components\Alert::resolve(['size' => 'xs'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('alert'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Alert::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'top-banner relative z-[9999] items-center rounded-md py-3 shadow-md','id' => 'banner-extension']); ?> <div class="flex w-full grow items-center justify-between gap-3"> <p class="m-0 text-lg font-semibold"> <?php echo e($banner->description); ?> </p> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalb5e767ad160784309dfcad41e788743b)): ?> <?php $attributes = $__attributesOriginalb5e767ad160784309dfcad41e788743b; ?> <?php unset($__attributesOriginalb5e767ad160784309dfcad41e788743b); ?> <?php endif; ?> <?php if (isset($__componentOriginalb5e767ad160784309dfcad41e788743b)): ?> <?php $component = $__componentOriginalb5e767ad160784309dfcad41e788743b; ?> <?php unset($__componentOriginalb5e767ad160784309dfcad41e788743b); ?> <?php endif; ?> <?php endif; ?> <?php endif; ?> <?php endif; ?> <script> function sendRequestBanner(bannerId) { const url = `<?php echo e(route('dashboard.admin.onboarding-pro.banner.display', ['id' => ':id'])); ?>`.replace(':id', bannerId); fetch(url, { method: 'GET', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, }) .then(response => { if (response.ok) { return response.json(); } else {} }) .then(data => { const alertElement = document.getElementById('banner-extension'); if (alertElement) { alertElement.style.display = 'none'; } }) .catch(error => {}); } </script> <?php /**PATH /home/imagivibe/public_html/app.imagivibe.com/app/Extensions/OnboardingPro/System/../resources/views/banner.blade.php ENDPATH**/ ?>
Save
Cancel