Fix Pint formatting

This commit is contained in:
root
2026-06-09 01:25:14 -04:00
parent 6be4875c5e
commit 20a0b6c4e5
1485 changed files with 11318 additions and 10273 deletions
+12 -13
View File
@@ -2,7 +2,6 @@
namespace App\Models;
use App\Models\BaseModel;
use Illuminate\Support\Facades\DB;
class ParentAttendanceReport extends BaseModel
@@ -27,10 +26,10 @@ class ParentAttendanceReport extends BaseModel
];
protected $casts = [
'parent_id' => 'integer',
'student_id' => 'integer',
'class_section_id'=> 'integer',
'report_date' => 'date',
'parent_id' => 'integer',
'student_id' => 'integer',
'class_section_id' => 'integer',
'report_date' => 'date',
];
/* Optional relationships */
@@ -68,10 +67,10 @@ class ParentAttendanceReport extends BaseModel
$q->where('par.parent_id', $parentId);
}
if (!empty($startDate)) {
if (! empty($startDate)) {
$q->where('par.report_date', '>=', $startDate);
}
if (!empty($endDate)) {
if (! empty($endDate)) {
$q->where('par.report_date', '<=', $endDate);
}
if (is_string($schoolYear) && $schoolYear !== '') {
@@ -82,12 +81,12 @@ class ParentAttendanceReport extends BaseModel
}
$q->leftJoin('students as s', 's.id', '=', 'par.student_id')
->leftJoin('classSection as cs', 'cs.class_section_id', '=', 'par.class_section_id')
->select('par.*', 's.firstname', 's.lastname', 'cs.class_section_name')
->orderBy('par.report_date', 'asc')
->orderBy('par.class_section_id', 'asc')
->orderBy('par.student_id', 'asc');
->leftJoin('classSection as cs', 'cs.class_section_id', '=', 'par.class_section_id')
->select('par.*', 's.firstname', 's.lastname', 'cs.class_section_name')
->orderBy('par.report_date', 'asc')
->orderBy('par.class_section_id', 'asc')
->orderBy('par.student_id', 'asc');
return $q->get()->map(fn ($r) => (array) $r)->all();
}
}
}