%PDF- %PDF-
| Direktori : /home2/rezakur1/kurniadev.rezakurnia.com/kurniadev/app/Http/Controllers/ |
| Current File : //home2/rezakur1/kurniadev.rezakurnia.com/kurniadev/app/Http/Controllers/landingPageController.php |
<?php
namespace App\Http\Controllers;
use App\Models\Guest;
use App\Models\Project;
use Illuminate\Http\Request;
class landingPageController extends Controller
{
public function index()
{
// $projects = [
// [
// "title" => "Attendy App",
// "image" => "projects/project-6",
// "category" => "Education",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Sipenla App (Smart School)",
// "image" => "projects/project-7",
// "category" => "Education",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Pengolahan Surat Permohonan - Generator PDF App",
// "image" => "projects/project-8",
// "category" => "Utility",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Lebard App",
// "image" => "projects/project-9",
// "category" => "Utility",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Maze To Find to Truth App",
// "image" => "projects/project-10",
// "category" => "Game",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Emotional Care",
// "image" => "projects/project-11",
// "category" => "Health",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Al-quran App (Terjemahan Lengkap Indonesia)",
// "image" => "projects/project-12",
// "category" => "Religion",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Portal Beasiswa",
// "image" => "projects/project-13",
// "category" => "Education",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Aplikasi Edukasi Wayang untuk Anak-anak",
// "image" => "projects/project-14",
// "category" => "Education",
// "date" => "2024-12-22"
// ],
// [
// "title" => "ELU App (Entry Nilai Luas dan Volume)",
// "image" => "projects/project-15",
// "category" => "Utility",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Runner Covid 19 (Game Education)",
// "image" => "projects/project-16",
// "category" => "Game",
// "date" => "2024-12-22"
// ],
// [
// "title" => "E-Batik Suraboyoan App",
// "image" => "projects/project-17",
// "category" => "Culture",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Media Pembelajaran Saince Interaktif App",
// "image" => "projects/project-18",
// "category" => "Education",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Hidrokarbon App (Drag and Drop Puzzle)",
// "image" => "projects/project-19",
// "category" => "Game",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Sistem Pemeringkatan Siswa (Metode SAW)",
// "image" => "projects/project-21",
// "category" => "Education",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Sistem Pelayanan Sertifikat Tanah",
// "image" => "projects/project-22",
// "category" => "Utility",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Sistem Pelayanan Arsip Inaktif",
// "image" => "projects/project-23",
// "category" => "Utility",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Kemerdekaan App",
// "image" => "projects/project-24",
// "category" => "Culture",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Virtual Queue App",
// "image" => "projects/project-25",
// "category" => "Utility",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Augmented Reality Inclusive Science App",
// "image" => "projects/project-1",
// "category" => "Education",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Berka App (Belajar Kata)",
// "image" => "projects/project-2",
// "category" => "Education",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Recipe App",
// "image" => "projects/project-3",
// "category" => "Lifestyle",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Metabharata App",
// "image" => "projects/project-4",
// "category" => "Culture",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Metasekerta App",
// "image" => "projects/project-5",
// "category" => "Utility",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Sistem Informasi Manajemen Inventaris Toko Listrik Lia",
// "image" => "projects/project-27",
// "category" => "Utility",
// "date" => "2024-12-22"
// ],
// [
// "title" => "ELU Website (Entry Nilai Luas dan Volume)",
// "image" => "projects/project-20",
// "category" => "Utility",
// "date" => "2024-12-22"
// ],
// [
// "title" => "Sistem Penerima Bantuan Pangan Non Tunai",
// "image" => "projects/project-26",
// "category" => "Social",
// "date" => "2024-12-22"
// ]
// ];
$projects = Project::join('categories', 'projects.id_category', '=', 'categories.id_category')
->select('projects.*', 'categories.name as category')
->take(6)
->inRandomOrder()
->get();
$projectCount = Project::join('categories', 'projects.id_category', '=', 'categories.id_category')
->select('projects.*', 'categories.name as category')
->count();
return view('landingpage.index', compact('projects', 'projectCount'));
}
public function dashboard()
{
return view('dashboard.index');
}
}