[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
software bumsil
/
aplikasi
/
peminjaman
/
app
/
Http
/
Controllers
/
Student
/
[
Home
]
File: BorrowingHistoryController.php
<?php namespace App\Http\Controllers\Student; use App\Http\Controllers\Controller; use App\Models\Borrowing; use Illuminate\Http\Request; class BorrowingHistoryController extends Controller { /** * Handle the incoming request. */ public function __invoke(Request $request) { $query = Borrowing::filter() ->where('student_id', auth('student')->id()) ->with('commodity:id,name', 'student:id,identification_number,name', 'officer:id,name') ->orderByDesc('date'); $borrowings = $query ->select('id', 'commodity_id', 'student_id', 'officer_id', 'date', 'time_start', 'time_end') ->get(); return view('student.borrowing.history.index', compact('borrowings')); } }