|
|
|
<?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::withTrashed()->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::withTrashed()->orderBy('created_at', 'desc')->get(),
|
|
|
|
'active' => 'history-pengembalian',
|
|
|
|
];
|
|
|
|
return view('dashboard.History.Pengembalian.index', $data);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function historyTransfer()
|
|
|
|
{
|
|
|
|
$data = [
|
|
|
|
'transfer' => Transfer::withTrashed()->orderBy('created_at', 'desc')->get(),
|
|
|
|
'active' => 'history-transfer',
|
|
|
|
];
|
|
|
|
return view('dashboard.History.Transfer.index', $data);
|
|
|
|
}
|
|
|
|
}
|