<!doctype html>
<html lang="<?php echo e(isRtl() ?? 'en'); ?>" dir="<?php echo e(isRtl() ?? 'ltr'); ?>">

<head>
    <meta charset="utf-8">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <base href="<?php echo e(url('/')); ?>">
    <title> <?php echo $__env->yieldContent('title'); ?> | <?php echo e(get_config('system_name')); ?> </title>
    <?php
        $adminFaviconRaw = get_config('admin_favicon');
        $icon = $adminFaviconRaw ? json_decode($adminFaviconRaw) : null;
        if (! $icon || empty($icon->image_96x96_url ?? null)) {
            $icon = json_decode(get_config('favicon'));
        }
    ?>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($icon): ?>
        <?php
            // Helper to check file existence
            function favicon_exists($path)
            {
                return $path && file_exists(public_path($path));
            }
        ?>

        <link rel="apple-touch-icon" sizes="57x57"
            href="<?php echo e(favicon_exists($icon->image_57x57_url ?? '') ? static_asset($icon->image_57x57_url) : static_asset('images/default/favicon/favicon-57x57.png')); ?>">
        <link rel="apple-touch-icon" sizes="60x60"
            href="<?php echo e(favicon_exists($icon->image_60x60_url ?? '') ? static_asset($icon->image_60x60_url) : static_asset('images/default/favicon/favicon-60x60.png')); ?>">
        <link rel="apple-touch-icon" sizes="72x72"
            href="<?php echo e(favicon_exists($icon->image_72x72_url ?? '') ? static_asset($icon->image_72x72_url) : static_asset('images/default/favicon/favicon-72x72.png')); ?>">
        <link rel="apple-touch-icon" sizes="76x76"
            href="<?php echo e(favicon_exists($icon->image_76x76_url ?? '') ? static_asset($icon->image_76x76_url) : static_asset('images/default/favicon/favicon-76x76.png')); ?>">
        <link rel="apple-touch-icon" sizes="114x114"
            href="<?php echo e(favicon_exists($icon->image_114x114_url ?? '') ? static_asset($icon->image_114x114_url) : static_asset('images/default/favicon/favicon-114x114.png')); ?>">
        <link rel="apple-touch-icon" sizes="120x120"
            href="<?php echo e(favicon_exists($icon->image_120x120_url ?? '') ? static_asset($icon->image_120x120_url) : static_asset('images/default/favicon/favicon-120x120.png')); ?>">
        <link rel="apple-touch-icon" sizes="144x144"
            href="<?php echo e(favicon_exists($icon->image_144x144_url ?? '') ? static_asset($icon->image_144x144_url) : static_asset('images/default/favicon/favicon-144x144.png')); ?>">
        <link rel="apple-touch-icon" sizes="152x152"
            href="<?php echo e(favicon_exists($icon->image_152x152_url ?? '') ? static_asset($icon->image_152x152_url) : static_asset('images/default/favicon/favicon-152x152.png')); ?>">
        <link rel="apple-touch-icon" sizes="180x180"
            href="<?php echo e(favicon_exists($icon->image_180x180_url ?? '') ? static_asset($icon->image_180x180_url) : static_asset('images/default/favicon/favicon-180x180.png')); ?>">
        <link rel="icon" type="image/png" sizes="192x192"
            href="<?php echo e(favicon_exists($icon->image_192x192_url ?? '') ? static_asset($icon->image_192x192_url) : static_asset('images/default/favicon/favicon-192x192.png')); ?>">
        <link rel="icon" type="image/png" sizes="32x32"
            href="<?php echo e(favicon_exists($icon->image_32x32_url ?? '') ? static_asset($icon->image_32x32_url) : static_asset('images/default/favicon/favicon-32x32.png')); ?>">
        <link rel="icon" type="image/png" sizes="96x96"
            href="<?php echo e(favicon_exists($icon->image_96x96_url ?? '') ? static_asset($icon->image_96x96_url) : static_asset('images/default/favicon/favicon-96x96.png')); ?>">
        <link rel="icon" type="image/png" sizes="16x16"
            href="<?php echo e(favicon_exists($icon->image_16x16_url ?? '') ? static_asset($icon->image_16x16_url) : static_asset('images/default/favicon/favicon-16x16.png')); ?>">
        <link rel="manifest" href="<?php echo e(static_asset('images/default/favicon/manifest.json')); ?>">

        <meta name="msapplication-TileColor" content="#ffffff">
        <meta name="msapplication-TileImage"
            content="<?php echo e(favicon_exists($icon->image_144x144_url ?? '') ? static_asset($icon->image_144x144_url) : static_asset('images/default/favicon/favicon-144x144.png')); ?>">
        <link rel="shortcut icon"
            href="<?php echo e(favicon_exists($icon->image_96x96_url ?? '') ? static_asset($icon->image_96x96_url) : static_asset('images/default/favicon/favicon-96x96.png')); ?>">
    <?php else: ?>
        <link rel="shortcut icon" href="<?php echo e(static_asset('images/default/favicon/favicon-96x96.png')); ?>">
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

    <!-- CSS Files -->
    <!--====== LineAwesome ======-->
    <link rel="stylesheet" href="<?php echo e(static_asset('admin/css/line-awesome.min.css')); ?>">
    <!--====== select2 CSS ======-->
    <link rel="stylesheet" href="<?php echo e(static_asset('admin/css/select2.min.css')); ?>">
    <!--====== Nestable CSS ======-->
    <link rel="stylesheet" href="<?php echo e(static_asset('admin/css/nestable.css')); ?>">
    <!--====== Summernote CSS ======-->
    <link rel="stylesheet" href="<?php echo e(static_asset('admin/css/summernote-lite.min.css')); ?>">
    <!--====== datatable ======-->
    <link href="<?php echo e(static_asset('admin/css/jquery.dataTables.min.css')); ?>" rel="stylesheet">
    <!--====== Flatpicker ======-->
    <link href="<?php echo e(static_asset('admin/css/flatpickr.min.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(static_asset('admin/css/rtl.css')); ?>" rel="stylesheet">

    <!--====== AppCSS ======-->
    <?php echo $__env->yieldPushContent('css_asset'); ?>
    <link rel="stylesheet" href="<?php echo e(static_asset('admin/css/toastr.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(static_asset('admin/css/app.css')); ?>?v=2.2.0">
    <link rel="stylesheet" href="<?php echo e(static_asset('admin/css/responsive.min.css')); ?>">
    <?php echo $__env->yieldPushContent('css'); ?>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(Auth::check() && auth()->user()->role_id == 3): ?>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(setting('is_google_analytics_activated') && setting('tracking_code')): ?>
            <?php echo base64_decode(setting('tracking_code')); ?>

        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</head>

<body
    class="<?php echo e(request()->routeIs('client.chat.index') || request()->is('client/flow-builders/*') ? 'chat_sidebar_collapse ' : ''); ?>">
    <input type="hidden" class="base_url" value="<?php echo e(url('/')); ?>">
    <?php echo $__env->yieldContent('base.content'); ?>
    <script src="<?php echo e(static_asset('admin/js/jquery.min.js')); ?>"></script>
    <!--====== Bootstrap & Popper JS ======-->
    <script src="<?php echo e(static_asset('admin/js/bootstrap.bundle.min.js')); ?>"></script>
    <script src="<?php echo e(static_asset('admin/js/popper.min.js')); ?>"></script>
    <script src="<?php echo e(static_asset('admin/js/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(static_asset('admin/js/dataTables.responsive.min.js')); ?>"></script>
    <!--====== NiceScroll ======-->
    <script src="<?php echo e(static_asset('admin/js/jquery.nicescroll.min.js')); ?>"></script>
    <!--====== Summernote JS ======-->
    <script src="<?php echo e(static_asset('admin/js/summernote-lite.min.js')); ?>"></script>
    <!--====== select2 JS ======-->
    <script src="<?php echo e(static_asset('admin/js/select2.min.js')); ?>"></script>
    <!--====== Chart JS ======-->
    <script src="<?php echo e(static_asset('admin/js/custom/dashboard/chart.min.js')); ?>"></script>

    <!--====== Flatpicker ======-->
    <script src="<?php echo e(static_asset('admin/js/flatpickr.js')); ?>"></script>

    <!--====== MainJS ======-->
    <script src="<?php echo e(static_asset('admin/js/app.js')); ?>"></script>
    <script src="<?php echo e(static_asset('admin/js/toastr.min.js')); ?>"></script>

    <script src="<?php echo e(static_asset('admin/js/sweetalert211.min.js')); ?>"></script>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('toastr_success')): ?>
        <script>
            "use strict";
            toastr.success("<?php echo e(session('toastr_success')); ?>");
        </script>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('toastr_error')): ?>
        <script>
            "use strict";
            toastr.error("<?php echo e(session('toastr_error')); ?>");
        </script>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    <!-- Display Toastr message -->
    <?php echo $__env->make('layouts.delete', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <?php echo $__env->make('layouts.modal', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <?php echo $__env->make('layouts.script', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <?php echo $__env->yieldPushContent('js'); ?>

</body>

</html>
<?php /**PATH /Users/md.emonmiah/Desktop/Porosh Vai/OTT Platfrom/ott_backend/resources/views/admin/layouts/base.blade.php ENDPATH**/ ?>