@extends('backend.layouts.main') @section('panel') @php // Fungsi untuk membaca isi file CSS saat Edit Tema $cssDesktop = ''; $cssMobile = ''; if(isset($theme->warna) && \Illuminate\Support\Facades\File::exists(public_path($theme->warna))) { $cssDesktop = \Illuminate\Support\Facades\File::get(public_path($theme->warna)); } if(isset($theme->warna_mobile) && \Illuminate\Support\Facades\File::exists(public_path($theme->warna_mobile))) { $cssMobile = \Illuminate\Support\Facades\File::get(public_path($theme->warna_mobile)); } @endphp
{{-- FORM EDIT TEMA --}} @if (Route::is('admin.website.theme.edit'))

Edit Tema

@csrf
Cari CSS Desktop di: https://domain_target.com/assets/css/style.css
Cari CSS Mobile di: https://domain_target.com/assets/css/style-m.css

*Kosongkan file di bawah ini jika tidak ingin mengubah gambar.
@if($theme->gambar) @endif
domain_target/assets/img/progressive-jackpot-text.png @if($theme->jackpot) @endif
domain_target/assets/img/progressive-jackpot.webp @if($theme->jackpot_desktop) @endif
domain_target/assets/img/progressive-jackpot-m.png @if($theme->jackpot_mobile) @endif
domain_target/assets/img/download.webp @if($theme->download) @endif
domain_target/assets/img/contact.webp @if($theme->contact) @endif
Batal
{{-- FORM TAMBAH TEMA BARU --}} @else

Tambah Tema Baru

@csrf
Cari CSS Desktop di: https://domain_target.com/assets/css/style.css
Cari CSS Mobile di: https://domain_target.com/assets/css/style-m.css

Cari di: domain_target/assets/img/progressive-jackpot-text.png
Cari di: domain_target/assets/img/progressive-jackpot.webp
Cari di: domain_target/assets/img/progressive-jackpot-m.png
Cari di: domain_target/assets/img/download.webp
Cari di: domain_target/assets/img/contact.webp
@endif {{-- TABEL LIST TEMA --}}

Select Active Theme

@csrf
@foreach ($themes as $item) {{-- NAMA TEMA --}} {{-- THUMBNAIL TEMA --}} {{-- CSS URLS (Dipotong agar tidak merusak tabel, tapi bisa diklik) --}} {{-- JACKPOT IMAGES (Global, Desktop, Mobile) --}} {{-- ICONS (Download & Contact) --}} {{-- STATUS --}} {{-- AKSI --}} @endforeach
# Nama Tema Thumbnail CSS (Desktop & Mobile) Jackpot (Global | D | M) Icons (DL | Contact) Status Aksi
{{ $loop->iteration }} {{ $item->name }} @if($item->gambar) - @else - @endif
@if($item->jackpot) @else - @endif | @if($item->jackpot_desktop) @else - @endif | @if($item->jackpot_mobile) @else - @endif
@if($item->download) @else - @endif | @if($item->contact) @else - @endif
@if($item->status == 'active') Active @else Disable @endif
@endsection