Menyelesaikan Menu KJPP

This commit is contained in:
2024-09-25 17:14:48 +07:00
parent 33ba88a276
commit 87a466385e
12 changed files with 360 additions and 70 deletions

View File

@@ -6,14 +6,14 @@ use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithColumnFormatting;
use Maatwebsite\Excel\Concerns\WithHeadings;
use Maatwebsite\Excel\Concerns\WithMapping;
use Modules\Lpj\Models\IjinUsaha;
use Modules\Lpj\Models\KJPP;
use PhpOffice\PhpSpreadsheet\Style\NumberFormat;
class KJPPExport implements WithColumnFormatting, WithHeadings, FromCollection, withMapping
{
public function collection()
{
return IjinUsaha::all();
return KJPP::all();
}
public function map($row): array
@@ -23,6 +23,26 @@ class KJPPExport implements WithColumnFormatting, WithHeadings, FromCollection,
$row->code,
$row->name,
$row->jenis_kantor,
$row->nomor_ijin_usaha,
$row->province_code,
$row->city_code,
$row->district_code,
$row->village_code,
$row->address,
$row->postal_code,
$row->nomor_telepon_kantor,
$row->email_kantor,
$row->nama_pimpinan,
$row->nomor_hp_pimpinan,
$row->nama_pic_reviewer,
$row->nomor_hp_pic_reviewer,
$row->nama_pic_admin,
$row->nomor_hp_pic_admin,
$row->nama_pic_marketing,
$row->nomor_hp_pic_marketing,
$row->ijin_usaha_id,
$row->jenis_aset_id,
$row->attachment,
$row->created_at
];
}
@@ -34,6 +54,26 @@ class KJPPExport implements WithColumnFormatting, WithHeadings, FromCollection,
'Code',
'Name',
'Jenis Kantor / Cabang',
'Nomor Ijin Usaha',
'Province Code',
'City Code',
'District Code',
'Village Code',
'Address',
'Postal Code',
'Nomor Telepon Kantor',
'Email Kantor',
'Nama Pimpinan',
'Nomor HP Pimpinan',
'Nama PIC Reviewer',
'Nomor HP PIC Reviewer',
'Nama PIC Admin',
'Nomor HP PIC Admin',
'Nama PIC Marketing',
'Nomor HP PIC Marketing',
'Ijin Usaha ID',
'Jenis Aset ID',
'Attachment',
'Created At'
];
}