id, $row->code, $row->name, $row->biaya, $row->authorized_status ? 'Yes' : 'No', $row->created_at->format('Y-m-d H:i:s'), $row->updated_at ? $row->updated_at->format('Y-m-d H:i:s') : '', ]; } /** * @param Worksheet $sheet * @return array */ public function styles(Worksheet $sheet) { return [ // Style the first row as bold text 1 => ['font' => ['bold' => true]], ]; } }