Web FT UNTAN (Laravel 8) versi lama + dump database ftuntan_web_profil
Kode dari ftuntan_main dengan dependensi diperbarui untuk PHP 8.3 (perbaikan insiden 27 Okt 2026). Dump database di database/sql/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Kontak;
|
||||
use App\Models\LinkProdi;
|
||||
use App\Models\ProfilSingkat;
|
||||
use App\Models\AplikasiIntegrasi;
|
||||
use App\Models\InformasiTerbaru;
|
||||
use App\Models\HimpunanMahasiswa;
|
||||
use App\Models\Jurnal;
|
||||
use App\Models\Prodi;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Validator;
|
||||
|
||||
class K3LController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$session_user = Auth::user();
|
||||
$jurnals = Jurnal::withTrashed()->get()
|
||||
->sortDesc();
|
||||
return view('admin.k3l.index', compact('k3l', 'session_user'));
|
||||
}
|
||||
|
||||
public function menuK3L()
|
||||
{
|
||||
$kontak = Kontak::all()->first();
|
||||
$himpunanMahasiswaHeaders = HimpunanMahasiswa::where('release_date', '<=', date('Y-m-d'))
|
||||
->orderBy('release_date', 'DESC')
|
||||
->get();
|
||||
|
||||
$linkProdis = LinkProdi::where('release_date', '<=', date('Y-m-d'))
|
||||
->orderBy('release_date', 'DESC')
|
||||
->get();
|
||||
$profilSingkat = ProfilSingkat::all()->first();
|
||||
$jurnals = Jurnal::latest()
|
||||
->paginate(25);
|
||||
$informasiTerbarus = InformasiTerbaru::informasiTerbaru()->take(6)->get();
|
||||
$aplikasiIntegrasis = AplikasiIntegrasi::where('release_date', '<=', date('Y-m-d'))
|
||||
->orderBy('release_date', 'DESC')
|
||||
->take(3)
|
||||
->get();
|
||||
|
||||
$dokumenK3L = DB::table('k3ls')
|
||||
->where('aktifDokumenK3L', '1')
|
||||
->orderBy('namaDokumen', 'ASC')
|
||||
->get();
|
||||
|
||||
return view('portal.k3l.index', compact('jurnals', 'himpunanMahasiswaHeaders', 'aplikasiIntegrasis', 'informasiTerbarus', 'linkProdis', 'profilSingkat', 'kontak', 'dokumenK3L'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user