You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
12 months ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use App\Models\Transfer;
|
||
|
use App\Models\m_warehouse;
|
||
|
use App\Models\asset_status;
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class HistoryController extends Controller
|
||
|
{
|
||
|
public function historyPeminjaman()
|
||
|
{
|
||
|
|
||
|
$data = [
|
||
|
// 'peminjaman' => asset_status::get(),
|
||
|
'peminjaman' => asset_status::orderBy('created_at', 'desc')->get(),
|
||
|
'warehouse' => m_warehouse::get(),
|
||
|
'active' => 'history-peminjaman',
|
||
|
];
|
||
|
|
||
|
return view('dashboard.History.Peminjaman.index', $data);
|
||
|
}
|
||
|
|
||
|
public function historyPengembalian()
|
||
|
{
|
||
|
$data = [
|
||
|
'peminjaman' => asset_status::orderBy('created_at', 'desc')->get(),
|
||
|
'active' => 'history-pengembalian',
|
||
|
];
|
||
|
return view('dashboard.History.Pengembalian.index', $data);
|
||
|
}
|
||
|
|
||
|
public function historyTransfer()
|
||
|
{
|
||
|
$data = [
|
||
|
'transfer' => Transfer::orderBy('created_at', 'desc')->get(),
|
||
|
'active' => 'history-transfer',
|
||
|
];
|
||
|
return view('dashboard.History.Transfer.index', $data);
|
||
|
}
|
||
|
}
|