[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: admin.blade.php
<!DOCTYPE html> @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 <html lang="{{ str_replace('_', '-', app()->getLocale()) }}" dir="{{ $SITE_RTL == 'on' ? 'rtl' : '' }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSRF Token --> <meta name="csrf-token" content="{{ csrf_token() }}"> <meta name="title" content="{{ $meta_setting['meta_keywords'] }}"> <meta name="description" content="{{ $meta_setting['meta_description'] }}"> <!-- Open Graph / Facebook --> <meta property="og:type" content="website"> <meta property="og:url" content= "{{ env('APP_URL') }}"> <meta property="og:title" content="{{ $meta_setting['meta_keywords'] }}"> <meta property="og:description" content="{{ $meta_setting['meta_description'] }}"> <meta property="og:image" content="{{ asset($meta_images . $meta_setting['meta_image']) }}"> <!-- Twitter --> <meta property="twitter:card" content="summary_large_image"> <meta property="twitter:url" content="{{ env('APP_URL') }}"> <meta property="twitter:title" content="{{ $meta_setting['meta_keywords'] }}"> <meta property="twitter:description" content="{{ $meta_setting['meta_description'] }}"> <meta property="twitter:image" content="{{ asset($meta_images . $meta_setting['meta_image']) }}"> <title> @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 </title> @if (Auth::user()->type == 'admin') <link rel="shortcut icon" href="{{ asset($logo . 'favicon.png' . '?' . time()) }}"> @else <link rel="shortcut icon" href="@if ($currentWorkspace->favicon) {{ asset($logo . $currentWorkspace->favicon . '?' . time()) }}@else{{ asset($logo . 'favicon.png' . '?' . time()) }} @endif"> @endif <link rel="stylesheet" href="{{ asset('assets/css/plugins/style.css') }}"> <link rel="stylesheet" href="{{ asset('assets/css/plugins/flatpickr.min.css') }}"> <link rel="stylesheet" href="{{ asset('assets/css/plugins/main.css') }}"> <link rel="stylesheet" href="{{ asset('assets/css/plugins/datepicker-bs5.min.css') }}"> <link rel="stylesheet" href="{{ asset('assets/css/plugins/bootstrap-switch-button.min.css') }}"> <link rel="stylesheet" href="{{ asset('assets/css/customizer.css') }}"> <link rel="stylesheet" href="{{ asset('assets/custom/css/custom.css') }}"> <link rel="stylesheet" href="{{ asset('assets/css/plugins/dragula.min.css') }}"> {{-- <link rel="stylesheet" href="{{asset('assets/css/landing.css')}}" /> --}} <link rel="stylesheet" href="{{ asset('assets/css/plugins/animate.min.css') }}" /> <link rel="stylesheet" href="{{ asset('assets/custom/libs/summernote/summernote-bs4.css') }}"> <link rel="stylesheet" href="{{ asset('assets/custom/libs/select2/dist/css/select2.min.css') }}"> <!-- vendor css --> @stack('css-page') <link rel="stylesheet" href="{{ asset('assets/fonts/tabler-icons.min.css') }}"> <link rel="stylesheet" href="{{ asset('assets/fonts/feather.css') }}"> <link rel="stylesheet" href="{{ asset('assets/fonts/fontawesome.css') }}"> <link rel="stylesheet" href="{{ asset('assets/fonts/material.css') }}"> @if ($SITE_RTL == 'on') <link rel="stylesheet" href="{{ asset('assets/css/style-rtl.css') }}"> @endif @if ($dark_mode == 'on') <link rel="stylesheet" href="{{ asset('assets/css/style-dark.css') }}" id="main-style-link"> @else <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}" id="main-style-link"> @endif <meta name="url" content="{{ url('') . '/' . config('chatify.routes.prefix') }}" data-user="{{ Auth::user()->id }}"> <script src='https://unpkg.com/nprogress@0.2.0/nprogress.js'></script> <style> :root { --color-customColor: <?=$color ?>; } </style> <link rel="stylesheet" href="{{ asset('css/custom-color.css') }}"> </head> @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') <style type="text/css"> .list-group-item.active { border-color: #000 !important; } </style> @else <style type="text/css"> .list-group-item.active { border-color: #ffff !important; } </style> @endif <style type="text/css"> [dir="rtl"] .dash-sidebar { left: auto !important; } /* [dir="rtl"] .dash-header { left: 0; right: 280px; } */ [dir="rtl"] .dash-header:not(.transprent-bg) .header-wrapper { padding: 0 0 0 30px; } [dir="rtl"] .dash-header:not(.transprent-bg):not(.dash-mob-header)~.dash-container { margin-left: 0px; } [dir="rtl"] .me-auto.dash-mob-drp { margin-right: 10px !important; } [dir="rtl"] .me-auto { margin-left: 10px !important; } [dir="rtl"] .header-wrapper .ms-auto { margin-left: 0 !important; } @media (min-width: 1024px) { [dir="rtl"] .dash-header { left: 0 !important; right: 280px !important; } } [dir="rtl"] #calender_type { float: left !important; } </style> <body class="{{ $color }}"> <!-- [ Pre-loader ] start --> <div class="loader-bg"> <div class="loader-track"> <div class="loader-fill"></div> </div> </div> <!-- <div class="container-fluid container-application"> --> @if (Auth::user()->getGuard() == 'client') <input type="hidden" id="path_admin" value="{{ url(isset($currentWorkspace) ? 'client/' . $currentWorkspace->slug : '') }}"> @else <input type="hidden" id="path_admin" value="{{ url(isset($currentWorkspace) ? $currentWorkspace->slug : '') }}"> @endif <div class="bg-primary" id="color_chart"></div> <script> var element = document.querySelector('#color_chart'); var style = getComputedStyle(element); </script> <script> var dataTableLang = { paginate: { previous: "<i class='fas fa-angle-left'>", next: "<i class='fas fa-angle-right'>" }, lengthMenu: "{{ __('Show') }} _MENU_ {{ __('entries') }}", zeroRecords: "{{ __('No data available in table.') }}", info: "{{ __('Showing') }} _START_ {{ __('to') }} _END_ {{ __('of') }} _TOTAL_ {{ __('entries') }}", infoEmpty: "{{ __('Showing 0 to 0 of 0 entries') }}", infoFiltered: "{{ __('(filtered from _MAX_ total entries)') }}", search: "{{ __('Search:') }}", thousands: ",", loadingRecords: "{{ __('Loading...') }}", processing: "{{ __('Processing...') }}" } </script> @include('partials.sidebar') @include('partials.topnav') <div class="dash-container"> <div class="dash-content"> <!-- [ breadcrumb ] start --> <div class="page-header"> <div class="page-block"> <div class="row row-gap align-items-center justify-content-between"> <div class="col-auto"> @if (trim($__env->yieldContent('page-title'))) <div class="page-header-title"> <h4 class="m-b-10">@yield('page-title')</h4> </div> @endif <ul class="breadcrumb"> @yield('links') </ul> </div> <div class="col-auto"> @if (trim($__env->yieldContent('action-button'))) <div class="text-end d-flex flex-wrap normal-gap all-button-box justify-content-md-end justify-content-center "> @yield('action-button') </div> @elseif(trim($__env->yieldContent('multiple-action-button'))) <div class=" row text-end row d-flex justify-content-end col-auto "> @yield('multiple-action-button') </div> @endif </div> </div> </div> </div> @yield('content') </div> </div> @if (Auth::user()->type != 'admin') <div class="modal fade" id="modelCreateWorkspace" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog " role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel"> {{ __('Create Workspace') }}</h5> <button type="button" class="btn-close" data-dismiss="modal" aria-label="Close"></button> </div> <div class="body"> <form class="needs-validation" novalidate method="post" action="{{ route('add-workspace', ['slug' => $currentWorkspace->slug]) }}"> @csrf <div class="modal-body"> <div class="row"> <div class="col-md-12"> <label for="workspacename" class="col-form-label">{{ __('Name') }}</label><x-required></x-required> <input class="form-control" type="text" id="workspacename" name="name" required="" placeholder="{{ __('Workspace Name') }}"> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-light text-end" data-dismiss="modal">{{ __('Close') }}</button> <input type="submit" value="{{ __('Create') }}" class="btn btn-primary"> </div> </form> </div> </div> </div> </div> @endif <div class="modal fade" id="commonModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel"></h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="body"> </div> </div> </div> </div> <div class="modal fade" id="commonModalOver" tabindex="1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel"></h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> </div> </div> </div> </div> @php \App::setLocale(env('DEFAULT_LANG')); $currantLang = 'en'; @endphp <script src="{{ asset('assets/custom/js/site.core.js') }}"></script> <script src="https://cdn.jsdelivr.net/npm/autosize@4.0.2/dist/autosize.min.js"></script> <script src="{{ asset('assets/custom/libs/moment/min/moment.min.js') }}"></script> <script src="{{ asset('assets/js/plugins/popper.min.js') }}"></script> <script src="{{ asset('assets/js/plugins/bootstrap.min.js') }}"></script> <script src="{{ asset('assets/custom/js/main.min.js') }}"></script> <script src="{{ asset('assets/custom/libs/bootstrap-notify/bootstrap-notify.min.js') }}"></script> <script src="{{ asset('assets/custom/libs/select2/dist/js/select2.min.js') }}"></script> <script src="{{ asset('assets/custom/js/custom.js') }}"></script> <script src="{{ asset('assets/js/plugins/bootstrap-switch-button.min.js') }}"></script> <script src="{{ asset('assets/js/plugins/choices.min.js') }}"></script> <script src="{{ asset('assets/js/plugins/simplebar.min.js') }}"></script> <script src="{{ asset('assets/js/plugins/perfect-scrollbar.min.js') }}"></script> <script src="{{ asset('assets/js/plugins/datepicker-full.min.js') }}"></script> <script src="{{ asset('assets/js/plugins/feather.min.js') }}"></script> <script src="{{ asset('assets/js/dash.js') }}"></script> <script src="{{ asset('assets/custom/libs/summernote/summernote-bs4.js') }}"></script> <script> $('.summernote').summernote({ toolbar: [ ['style', ['style']], ['font', ['bold', 'italic', 'underline', 'strikethrough']], ['list', ['ul', 'ol', 'paragraph']], ['insert', ['link', 'unlink']], ], height: 250, }); </script> <script> (function() { const d_week = new Datepicker(document.getElementByClass('.datepicker'), { buttonClass: 'btn', todayBtn: true, clearBtn: true }); }); </script> <script type="text/javascript"> $(document).on("click", ".view_all_notification", function() { $('.notification_menu_all').css('display', 'block'); //$(".notification_menu_all").addClass("show"); $(".limited").hide(); $(".all_notification").show(); $(".view_less").show(); $(".view_all_notification").hide(); }); $(document).on("click", ".view_less", function() { $('.notification_menu_all').css('display', 'block'); $(".all_notification").hide(); $(".limited").show(); $(".view_all_notification").show(); $(".view_less").hide(); }); </script> <script> $(document).on("click", ".clear_all_notifications", function() { var chbox = $(this); $.ajax({ url: chbox.attr('data-url'), data: { _token: $('meta[name="csrf-token"]').attr('content') }, type: 'POST', success: function(response) { if (response.is_success) { show_toastr('success', response.success, 'success'); $('.noti-body').hide(); $('.dots').hide(); } else { show_toastr('error', response.error, 'error'); } }, error: function(response) { response = response.responseJSON; if (response.is_success) { show_toastr('error', response.error, 'error'); } else { show_toastr('error', response, 'error'); } } }) }); </script> @if (env('CHAT_MODULE') == 'yes' && isset($currentWorkspace) && $currentWorkspace) @auth('web') {{-- Pusher JS --}} <script src="https://js.pusher.com/5.0/pusher.min.js"></script> <script> $(document).ready(function() { pushNotification('{{ Auth::id() }}'); }); function pushNotification(id) { // ajax setup form csrf token $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); // Enable pusher logging - don't include this in production Pusher.logToConsole = false; var pusher = new Pusher('{{ env('PUSHER_APP_KEY') }}', { cluster: '{{ env('PUSHER_APP_CLUSTER') }}', forceTLS: true }); var channel = pusher.subscribe('{{ $currentWorkspace->slug }}'); channel.bind('notification', function(data) { if (id == data.user_id) { $(".notification-toggle").addClass('beep'); $(".notification-dropdown .dropdown-list-icons").prepend(data.html); } }); channel.bind('chat', function(data) { if (id == data.to) { getChat(); } }); } function getChat() { $.ajax({ url: '{{ route('message.data') }}', cache: false, dataType: 'html', success: function(data) { if (data.length) { $(".message-toggle").addClass('beep'); $(".dropdown-list-message").html(data); LetterAvatar.transform(); } } }) } getChat(); $(document).on("click", ".mark_all_as_read", function() { $.ajax({ url: '{{ route('notification.seen', $currentWorkspace->slug) }}', type: "get", cache: false, success: function(data) { $('.notification-dropdown .dropdown-list-icons').html(''); $(".notification-toggle").removeClass('beep'); } }) }); $(document).on("click", ".mark_all_as_read_message", function() { $.ajax({ url: '{{ route('message.seen', $currentWorkspace->slug) }}', type: "get", cache: false, success: function(data) { $('.dropdown-list-message').html(''); $(".message-toggle").removeClass('beep'); } }) }); </script> {{-- End Pusher JS --}} @endauth @endif <script> feather.replace(); var pctoggle = document.querySelector("#pct-toggler"); if (pctoggle) { pctoggle.addEventListener("click", function() { if ( !document.querySelector(".pct-customizer").classList.contains("active") ) { document.querySelector(".pct-customizer").classList.add("active"); } else { document.querySelector(".pct-customizer").classList.remove("active"); } }); } var themescolors = document.querySelectorAll(".themes-color > a"); if (themescolors) { for (var h = 0; h < themescolors.length; h++) { var c = themescolors[h]; c.addEventListener("click", function(event) { var targetElement = event.target; if (targetElement.tagName == "SPAN") { targetElement = targetElement.parentNode; } var temp = targetElement.getAttribute("data-value"); removeClassByPrefix(document.querySelector("body"), "theme-"); document.querySelector("body").classList.add(temp); }); } } var custthemebg = document.querySelector("#cust-theme-bg"); if (custthemebg) { custthemebg.addEventListener("click", function() { if (custthemebg.checked) { document.querySelector(".dash-sidebar").classList.add("transprent-bg"); document .querySelector(".dash-header:not(.dash-mob-header)") .classList.add("transprent-bg"); } else { document.querySelector(".dash-sidebar").classList.remove("transprent-bg"); document .querySelector(".dash-header:not(.dash-mob-header)") .classList.remove("transprent-bg"); } }); } var custdarklayout = document.querySelector("#cust-darklayout"); if (custdarklayout) { custdarklayout.addEventListener("click", function() { if (custdarklayout.checked) { document .querySelector("#main-style-link") .setAttribute("href", "{{ asset('assets/css/style-dark.css') }}"); document .querySelector(".m-header > .b-brand > .sidebar_logo_size") .setAttribute("src", "{{ url('storage/logo/logo-dark.png') }}"); } else { document .querySelector("#main-style-link") .setAttribute("href", "{{ asset('assets/css/style.css') }}"); document .querySelector(".m-header > .b-brand > .sidebar_logo_size") .setAttribute("src", "{{ url('storage/logo/logo-light.png') }}"); } }); } function removeClassByPrefix(node, prefix) { for (let i = 0; i < node.classList.length; i++) { let value = node.classList[i]; if (value.startsWith(prefix)) { node.classList.remove(value); } } } </script> <!-- Site JS --> <script src="{{ asset('assets/js/plugins/sweetalert2.all.min.js') }}"></script> <script src="{{ asset('assets/custom/js/ac-alert.js') }}"></script> <script src="{{ asset('assets/custom/js/letter.avatar.js') }}"></script> <script src="{{ asset('assets/custom/js/fire.modal.js') }}"></script> <script src="{{ asset('assets/custom/libs/nicescroll/jquery.nicescroll.min.js') }} "></script> <script src="{{ asset('assets/js/plugins/simple-datatables.js') }}"></script> <script> const dataTableElement = document.querySelector("#selection-datatable"); if (dataTableElement) { const dataTable = new simpleDatatables.DataTable(dataTableElement); } </script> {{-- <script> const dataTable = new simpleDatatables.DataTable("#selection-datatable"); </script> --}} <!-- Demo JS - remove it when starting your project --> {{-- <script src="{{ asset('assets/js/demo.js') }}"></script> --}} <script> var date_picker_locale = { format: 'YYYY-MM-DD', daysOfWeek: [ "{{ __('Sun') }}", "{{ __('Mon') }}", "{{ __('Tue') }}", "{{ __('Wed') }}", "{{ __('Thu') }}", "{{ __('Fri') }}", "{{ __('Sat') }}" ], monthNames: [ "{{ __('January') }}", "{{ __('February') }}", "{{ __('March') }}", "{{ __('April') }}", "{{ __('May') }}", "{{ __('June') }}", "{{ __('July') }}", "{{ __('August') }}", "{{ __('September') }}", "{{ __('October') }}", "{{ __('November') }}", "{{ __('December') }}" ], }; var calender_header = { today: "{{ __('today') }}", month: '{{ __('month') }}', week: '{{ __('week') }}', day: '{{ __('day') }}', list: '{{ __('list') }}' }; </script> @if ($meta_setting['enable_cookie'] == 'on') @include('layouts.cookie_consent') @endif {{-- @if (env('gdpr_cookie') == 'on') <script type="text/javascript"> var defaults = { 'messageLocales': { /*'en': 'We use cookies to make sure you can have the best experience on our website. If you continue to use this site we assume that you will be happy with it.'*/ 'en': '{{env('cookie_text')}}' }, 'buttonLocales': { 'en': 'Ok' }, 'cookieNoticePosition': 'bottom', 'learnMoreLinkEnabled': false, 'learnMoreLinkHref': '/cookie-banner-information.html', 'learnMoreLinkText': { 'it': 'Saperne di più', 'en': 'Learn more', 'de': 'Mehr erfahren', 'fr': 'En savoir plus' }, 'buttonLocales': { 'en': 'Ok' }, 'expiresIn': 30, 'buttonBgColor': '#d35400', 'buttonTextColor': '#fff', 'noticeBgColor': '#000000', 'noticeTextColor': '#fff', 'linkColor': '#009fdd' }; </script> <script src="{{ asset('assets/custom/js/cookie.notice.js')}}"></script> @endif --}} @if (isset($currentWorkspace) && $currentWorkspace) <script src="{{ asset('assets/custom/js/jquery.easy-autocomplete.min.js') }}"></script> <script> var options = { url: function(phrase) { return "@auth('web'){{ route('search.json', $currentWorkspace->slug) }}@elseauth{{ route('client.search.json', $currentWorkspace->slug) }}@endauth/" + phrase; }, categories: [{ listLocation: "Projects", header: "{{ __('Projects') }}" }, { listLocation: "Tasks", header: "{{ __('Tasks') }}" } ], getValue: "text", template: { type: "links", fields: { link: "link" } } }; $(".search-element input").easyAutocomplete(options); </script> @endif <!-- for setting scroling Active --> {{-- <script> var multipleCancelButton = new Choices('#choices-multiple-remove-button', { removeItemButton: true, }); var scrollSpy = new bootstrap.ScrollSpy(document.body, { target: '#useradd-sidenav', offset: 300 }) </script> --}} <script> (function() { var switch_event = document.querySelector("#switch_event"); if (switch_event) { switch_event.addEventListener('change', function() { if (switch_event.checked) { document.querySelector("#console_event").innerHTML = "Switch Button Checked"; } else { document.querySelector("#console_event").innerHTML = "Switch Button Unchecked"; } }); } })(); </script> @stack('scripts') @stack('script-page') @if (Session::has('success')) <script> show_toastr('{{ __('Success') }}', '{!! session('success') !!}', 'success'); </script> @endif @if (Session::has('error')) <script> show_toastr('{{ __('Error') }}', '{!! session('error') !!}', 'error'); </script> @endif <script></script> @include('partials.footer') @if (Auth::user()->getGuard() != 'client' && Auth::user()->type != 'admin') @include('Chatify::layouts.footerLinks') @endif </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.82 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002