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.
26 lines
580 B
26 lines
580 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use App\Models\Peti;
|
||
|
use Illuminate\Http\Request;
|
||
|
use Maatwebsite\Excel\Facades\Excel;
|
||
|
use App\Exports\PetternLotPetiExport;
|
||
|
|
||
|
class PetternLotPetiController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
$data = [
|
||
|
'peti' => Peti::get(),
|
||
|
'active' => 'menu-Pettern_Lot_Peti'
|
||
|
];
|
||
|
return view('dashboard.Master_Data.Report.PATTERN LOT PETI.index', $data);
|
||
|
}
|
||
|
|
||
|
public function export()
|
||
|
{
|
||
|
return Excel::download(new PetternLotPetiExport, 'PATTERN LOT PETI.xlsx');
|
||
|
}
|
||
|
}
|