Siopas Inventory PETI for ISTW Website
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.
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Report;
|
|
|
|
|
|
|
|
use App\Exports\WarehouseExport;
|
|
|
|
use App\Models\m_warehouse;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
use Maatwebsite\Excel\Facades\Excel;
|
|
|
|
|
|
|
|
class ReportWarehouseController extends Controller
|
|
|
|
{
|
|
|
|
public function index()
|
|
|
|
{
|
|
|
|
// dd('Index');
|
|
|
|
$data = [
|
|
|
|
'warehouse' => m_warehouse::get(),
|
|
|
|
'active' => 'menu-ReportWarehouse'
|
|
|
|
];
|
|
|
|
return view('dashboard.Master_Data.Report.Warehouse.index', $data);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function export()
|
|
|
|
{
|
|
|
|
// dd('export');
|
|
|
|
return Excel::download(new WarehouseExport, 'Report_Gudang.xlsx');
|
|
|
|
}
|
|
|
|
}
|