app/Http/Controllers/AttendanceController.php
/**
     * Display a listing of the resource.
     *
     * @return AccountResource
     */
Display a listing of the resource.
Display a listing of the resource .
public function index()
    {
        try {
            $attendances = AttendanceService::getActiveCustomersWithAttendance();
            return AccountResource::collection($attendances);
        } catch (\Exception $exception) {
            return Helper::exceptionJSON($exception, 400, "attendance");
        }
    }
public function index ( ) { try { $ attendances = AttendanceService :: getActiveCustomersWithAttendance ( ) ; return AccountResource :: collection ( $ attendances ) ; } catch ( \ Exception $ exception ) { return Helper :: exceptionJSON ( $ exception , 400 , " attendance " ) ; } }
Display a listing of the resource.
Display a listing of the resource .