Balok Skdn Excel- — Download

Before downloading, the user must be able to filter the data to ensure the report is relevant. The system shall provide inputs for:

You must be careful when downloading Excel templates from the internet to avoid macro viruses. Here are the best sources:

Isi sel Nama Desa/Kelurahan, Puskesmas, dan Tahun. Biasanya ada di area header (baris 1-5). Download Balok Skdn Excel-

If you cannot find a ready-made template, create one in 10 minutes.

While there are many health applications available, Excel remains the gold standard for rural and urban Posyandu cadres because: Before downloading, the user must be able to

// Controller
use App\Exports\SkdnBalitaExport;
use Maatwebsite\Excel\Facades\Excel;

class SkdnController extends Controller public function exportExcel() return Excel::download(new SkdnBalitaExport(), 'skdn_balita_' . date('Y-m-d') . '.xlsx');

Export Class:

// App/Exports/SkdnBalitaExport.php
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithHeadings;
use App\Models\SkdnBalita;

class SkdnBalitaExport implements FromCollection, WithHeadings public function collection() return SkdnBalita::select('nama_balita', 'umur_bulan', 'jenis_kelamin', 'berat_badan', 'timbang_skdn', 'status_k', 'status_d', 'status_n') ->where('bulan_laporan', date('m')) ->where('tahun_laporan', date('Y')) ->get(); Export Class: // App/Exports/SkdnBalitaExport

public function headings(): array
return ['Nama Balita', 'Umur (Bulan)', 'Jenis Kelamin', 'Berat Badan (kg)', 'Timbang (S)', 'Naik (K)', 'Ditimang Bulan Lalu (D)', 'Naik (N)'];