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.

29 lines
666 B

12 months ago
<?php
namespace App\Http\Controllers\Report;
use App\Exports\TipePetiExport;
use App\Models\Type_peti;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Maatwebsite\Excel\Facades\Excel;
class ReportTipePetiController extends Controller
{
public function index()
{
// dd('Index');
$data = [
'tipepeti' => Type_peti::get(),
'active' => 'menu-ReportTypePeti'
];
return view('dashboard.Master_Data.Report.Tipe_Peti.index', $data);
}
public function export()
{
// dd('export');
return Excel::download(new TipePetiExport, 'Report_Tipe_Peti.xlsx');
}
}