I do not understand what's happening in this code that populates a cell B8 in excel:
$sheet->cell('BQ'.$i, function($cell) use($report) {
$cell->setValue(!empty($report->PastaStatusHistorical->where('status_historical.status','Concluído')->first()) ?
$report->PastaStatusHistorical->where('status_historical.status','Concluído')->first()->created_at->format('d/m/Y') : '');
});
Is a database or application date being passed?
How do I find this table and column in the bank?
Does this where->
indicate that there is a select?
created_at->
is a method?
What's happening with PastaStatusHistorical
? I go in the template and do not find these 'completed' status fields.