One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
public_html
/
cbtapp
/
app
/
Exports
/
Edit File:
VariationExport.php
<?php namespace App\Exports; use App\Variations; use Maatwebsite\Excel\Concerns\FromCollection; use Maatwebsite\Excel\Concerns\WithHeadings; use Maatwebsite\Excel\Concerns\Exportable; use Auth; use DB; class VariationExport implements WithHeadings, FromCollection { /** * @return \Illuminate\Support\Collection */ use Exportable; public function __construct(string $month) { $this->month = $month; return $this; } public function collection() { $variations = Variations::select('ippisnumber', 'name', 'savings', 'normalloan', 'softloan', 'shop', 'business', 'total', 'month')->where('month', $this->month)->get(); return $variations; } public function headings(): array{ return['IPPIS Number', 'Name', 'Savings Account', 'Normal Loan Repayment', 'Soft Loan Repayment', 'Shop', 'Business', 'Total', 'Month']; } }
Simpan