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
693 B
29 lines
693 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\Report;
|
||
|
|
||
|
use App\Exports\KondisiPetiExport;
|
||
|
use App\Models\Kondisi_Peti;
|
||
|
use Illuminate\Http\Request;
|
||
|
use App\Http\Controllers\Controller;
|
||
|
use Maatwebsite\Excel\Facades\Excel;
|
||
|
|
||
|
class ReportKondisiPetiController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
// dd('Index');
|
||
|
$data = [
|
||
|
'kondisiPeti' => Kondisi_Peti::get(),
|
||
|
'active' => 'menu-ReportKondisiPeti'
|
||
|
];
|
||
|
return view('dashboard.Master_Data.Report.Kondisi_Peti.index', $data);
|
||
|
}
|
||
|
|
||
|
public function export()
|
||
|
{
|
||
|
// dd('export');
|
||
|
return Excel::download(new KondisiPetiExport, 'Report_Kondisi_Peti.xlsx');
|
||
|
}
|
||
|
}
|