@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
{{-- Alert --}} @include('components.alert')
{{ $title_menu }}

Kelola slider untuk halaman Beranda, Karir, dan Magang


{{-- Left Panel: Slider Type Tabs --}}
Tipe Slider
{{-- Right Panel: Slider Content --}}
@foreach($sliderTypes as $index => $type)
{{-- Add Slider Button --}} @if($authorize && $authorize->add == '1')
Daftar Slider {{ $type->name }}
@endif {{-- Slider Table with Drag & Drop --}}
@if(isset($sliders[$type->value]) && $sliders[$type->value]->count() > 0) @foreach($sliders[$type->value] as $slider) isactive == '0') style="background-color: #ffcdd2; border-left: 4px solid #f44336;" @endif> @endforeach @else @endif
Urut Preview Gambar Status Aksi
isactive == '0') style="color: #c62828;" @endif> isactive == '0') style="background-color: #f44336 !important; color: white !important;" @endif> {{ $slider->urut }} isactive == '0') style="color: #c62828;" @endif>
@php $thumbPath = public_path('storage/' . $slider->image . 'tumb.png'); $thumbSrc = file_exists($thumbPath) ? asset('storage/' . $slider->image . 'tumb.png') : asset('storage/' . $slider->image); @endphp Slider {{ $slider->urut }}
isactive == '0') style="color: #d32f2f;" @else class="text-muted" @endif> {{ \Carbon\Carbon::parse($slider->created_at)->format('d M Y H:i') }} @if($slider->user_create) isactive == '0') style="color: #d32f2f;" @else class="text-muted" @endif> {{ $slider->user_create }} @endif
isactive == '0') style="color: #c62828;" @endif>
isactive == '1' ? 'checked' : '' }} {{ $authorize && $authorize->edit == '1' ? '' : 'disabled' }}>
isactive == '0') style="color: #c62828;" @endif> @if($authorize && $authorize->delete == '1') @endif

Belum ada slider untuk {{ $type->name }}

@if($authorize && $authorize->add == '1') @endif
{{-- Save Order Button --}}
@endforeach
{{-- Add Slider Modal --}} {{-- Image Preview Modal --}} @endsection @push('css') @endpush @push('js') @endpush