@extends('layouts.dashboard') @section('title', 'Manajemen Jadwal Bel Sekolah') @section('content')

Manajemen Jadwal Bel Sekolah

Jadwal Bel Otomatis dan Kontrol Sistem

Riwayat Tambah Jadwal
@include('admin.bel.partials.status-card', [ 'id' => 'mqttCard', 'icon' => 'M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01', 'title' => 'MQTT Connection', 'statusId' => 'mqttStatusText', 'status' => 'Connected', 'detailsId' => 'mqttStatusDetails', 'details' => 'Terkahir diPerbarui: '.now()->format('H:i:s') ]) @include('admin.bel.partials.status-card', [ 'id' => 'rtcCard', 'icon' => 'M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z', 'title' => 'RTC Module', 'statusId' => 'rtcStatusText', 'status' => 'Connected', 'detailsId' => 'rtcTimeText', 'details' => now()->format('Y-m-d H:i:s') ]) @include('admin.bel.partials.status-card', [ 'id' => 'dfplayerCard', 'icon' => 'M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3', 'title' => 'Audio Player', 'statusId' => 'dfplayerStatusText', 'status' => 'Connected', 'detailsId' => 'dfplayerDetails', 'details' => '' ])

Jadwal Bel Berikutnya

{{ $nextSchedule ? 'Menghitung ...' : 'Tidak Ada Jadwal Bel Yang Akan Datang' }}

@if($nextSchedule) {{ $nextSchedule->hari }}, {{ $nextSchedule->waktu }} (File {{ $nextSchedule->file_number }}) @endif

@if($todaySchedules->count() > 0)

Today's Schedule ({{ \Carbon\Carbon::now()->isoFormat('dddd, D MMMM YYYY') }})

{{ $todaySchedules->count() }} {{ $todaySchedules->count() > 1 ? 'Schedules' : 'Schedule' }}
@foreach($todaySchedules as $schedule)
{{ $schedule->formatted_time }} File {{ $schedule->file_number }}
{{ $schedule->is_active ? 'Active' : 'Inactive' }} @if($schedule->is_now) SEKARANG @endif
@endforeach
@endif
@if(request('hari') || request('search')) @endif
@forelse($schedules as $schedule) @empty @endforelse
Hari Waktu File Audio Status Aksi
{{ $schedule->hari }}
{{ $schedule->formatted_time }}
File {{ $schedule->file_number }}
@csrf @method('PUT')
@csrf @method('DELETE')

Tidak Ada Jadwal Tersedia

Anda Belum Membuat Jadwal Bel. Klik Button Diatas Untuk Menambahkan Jadwal Bel

Tambah Jadwal
@if($schedules->hasPages())
{{ $schedules->links() }}
@endif
@include('admin.bel.partials.scripts') @endsection @push('styles') @vite('resources/css/app.css') @endpush