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

@php // Fetch data from the query $data = DB::select("SELECT a.period, (SELECT COUNT(batch) FROM mst_rawdata WHERE period = a.period) as ROLL FROM mst_rawdata a GROUP BY a.period ORDER BY a.period DESC"); @endphp
@php // Fetch data from the query $data = DB::select("SELECT a.period, (SELECT COUNT(batch) FROM mst_rawdata WHERE period = a.period) as ROLL FROM mst_rawdata a GROUP BY a.period ORDER BY a.period DESC"); @endphp
@if (!empty($data) && count($data) > 0) @foreach ($data as $row) @endforeach @endif
Periode Roll Aksi
{{ $row->period }} {{ $row->ROLL }}
@csrf @method('DELETE')
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
{{-- check flag js on dmenu --}} @if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') {{-- file js in folder (resources/views/js) --}} @include('js.' . $dmenu); @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('js') @endpush