%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pjcold2/app/Exports/
Upload File :
Create Path :
Current File : /var/www/pjcold2/app/Exports/Exportc.php

<?php

namespace App\Exports;

use Maatwebsite\Excel\Concerns\FromArray;
use Maatwebsite\Excel\Concerns\WithHeadings;
use Maatwebsite\Excel\Concerns\WithStyles;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;

class Exportc implements FromArray, WithHeadings,WithStyles
{
    protected $data;

    public function __construct(array $data)
    {
        $this->data = $data;
    }

    public function array(): array
    {
        return $this->data;
    }

    public function headings(): array
    {
        return ["Utente", "Data e ora ingresso", "Data e ora uscita","Messaggi"];
    }

    public function styles(Worksheet $sheet)
    {
        return [
            // Style the first row as bold text.
            'A1'    => ['font' => ['bold' => true]],
            'B1'    => ['font' => ['bold' => true]],
            'C1'    => ['font' => ['bold' => true]],
            'D1'    => ['font' => ['bold' => true]],

         
        ];
    }
}

Zerion Mini Shell 1.0