관리-도구
편집 파일: theme-setup.blade.php
@extends('layouts.admin.app') @section('title', translate('Theme_Setup')) @section('content') <div class="content container-fluid"> <h1 class="mb-3 mb-sm-20"> {{ translate('Theme_Setup') }} </h1> <div class="card"> <div class="card-body"> <div class="mb-3 mb-sm-20 d-flex flex-wrap gap-3 justify-content-between align-items-center"> <div> <h2>{{ translate('Available_Themes') }}</h2> <p class="mb-0 fs-12"> {{ translate('select_the_theme_you_want_to_use_for_your_system') }} </p> </div> </div> <div class="row g-3"> @foreach($themes as $key => $theme) @if(isset($theme['software_id'])) <div class="col-sm-6 col-xl-4"> <div class="card border shadow-none h-100 overflow-hidden {{ theme_root_path() == $key ? 'theme-active' : '' }}"> <div class="bg-section p-12 p-sm-20 d-flex justify-content-between gap-3 align-items-start"> <div> <div class="d-flex gap-2 align-items-center mb-3"> <h3 class="fw-bold mb-0"> {{ ucwords(str_replace('_', ' ', $key =='default' ? 'default_theme' : $theme['name'] ?? '')) }} </h3> @if($theme['is_active']) <div class="text-white px-2 py-1 fs-12 lh-1 fw-semibold rounded bg-success"> {{ translate('Active') }} </div> @endif </div> <h5 class="text-info-dark mb-0"> {{ translate('Version') }} {{ $theme['version'] ?? '1.0' }} </h5> </div> @if(($key == 'default' || $key == 'theme_aster') || $theme['comfortable_panel_version'] == SOFTWARE_VERSION) <div class="d-flex gap-2 gap-sm-3 align-items-center"> @if(($key != 'default' && $key != 'theme_aster') && theme_root_path() != $key) <button class="btn btn-outline-danger bg-danger bg-opacity-10 icon-btn" data-bs-toggle="modal" data-bs-target="#deleteThemeModal_{{ $key }}"> <i class="fi fi-sr-trash"></i> </button> @endif @if(theme_root_path() == $key) <input class="form-check-input radio--input radio--input_lg" type="radio" checked> @else <input class="form-check-input radio--input radio--input_lg theme-publish-status theme-publish-status-{{ $key }}" type="radio" data-bs-toggle="modal" data-bs-target="#shiftThemeModal_{{ $key }}"> @endif </div> @else <div class="max-w-150px text-white px-2 py-1 fs-12 fw-semibold rounded bg-warning"> {{ translate('Please_ues_panel_comfortable_version') }} </div> @endif </div> <div class="card-body"> <div class="ratio-3-2 border rounded-10"> <?php if (DOMAIN_POINTED_DIRECTORY == 'public') { $themeImage = dynamicAsset(path: 'public/themes/'.$key.'/public/addon/'.($theme['image'] ?? '')); } else { $themeImage = dynamicAsset(path: 'resources/themes/'.$key.'/public/addon/'.$theme['image'] ?? ''); } ?> <img class="img-fit rounded-10" alt="" src="{{ getStorageImages(path: null, type: 'backend-basic', source: $themeImage) }}"> </div> </div> </div> </div> @endif @endforeach @include('admin-views.system-setup.themes.theme-activate-modal') </div> </div> </div> @include("admin-views.system-setup.themes._theme-modals") </div> <span id="get-theme-publish-route" data-action="{{ route('admin.system-setup.theme.publish') }}"></span> <span id="get-theme-delete-route"></span> <span id="get-notify-all-vendor-route-and-img-src" data-csrf="{{ csrf_token() }}" data-src="{{ dynamicAsset(path: 'public/assets/back-end/img/notify_success.png') }}" data-action="{{ route('admin.system-setup.theme.notify-all-the-vendors') }}"> </span> @include("layouts.admin.partials.offcanvas._theme-setup") @endsection @push('script') <script src="{{ dynamicAsset(path: 'public/assets/back-end/js/admin/addon.js') }}"></script> <script src="{{ dynamicAsset(path: 'public/assets/back-end/js/admin/business-setting/theme-setup.js') }}"></script> @endpush