Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:yungifez/skuul into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yungifez committed Dec 12, 2023
2 parents f4b6049 + 1038e44 commit 64251b8
Show file tree
Hide file tree
Showing 26 changed files with 1 addition and 25 deletions.
1 change: 0 additions & 1 deletion app/Livewire/ApplicationHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class ApplicationHistory extends Component

public function mount()
{

$this->applicant->loadMissing('accountApplication', 'accountApplication.statuses');
}

Expand Down
1 change: 0 additions & 1 deletion app/Livewire/AssignStudentsToParent.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class AssignStudentsToParent extends Component

public function mount(SectionService $sectionService, MyClassService $myClassService)
{

$this->classes = $myClassService->getAllClasses();
if ($this->classes->isEmpty()) {
return;
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/AssignTeacherToSubjects.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class AssignTeacherToSubjects extends Component

public function mount(TeacherService $teacherService, MyClassService $myclassService)
{

$this->classes = $myclassService->getAllClasses();
$this->class = $this->classes->first()?->id;
$this->teachers = $teacherService->getAllTeachers();
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/ChangeAccountApplicationStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class ChangeAccountApplicationStatus extends Component

public function mount(User $applicant)
{

$this->applicant = $applicant;

//return null if no applicant record
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/CreateCustomTimetableItemForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

class CreateCustomTimetableItemForm extends Component
{

public function render()
{
return view('livewire.create-custom-timetable-item-form');
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/CreateFeeCategoryForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

class CreateFeeCategoryForm extends Component
{

public function render()
{
return view('livewire.create-fee-category-form');
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/DashboardDataCards.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class DashboardDataCards extends Component

public function mount(SectionService $sectionService)
{

$this->schools = School::count();
$this->classGroups = auth()->user()->school->classGroups()->count();
$this->classes = auth()->user()->school->myClasses()->count();
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/EditAcademicYearForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class EditAcademicYearForm extends Component
{
public AcademicYear $academicYear;


public function render()
{
return view('livewire.edit-academic-year-form');
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/EditCustomTimetableItemForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class EditCustomTimetableItemForm extends Component
{
public CustomTimetableItem $customTimetableItem;


public function render()
{
return view('livewire.edit-custom-timetable-item-form');
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/EditExamForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class EditExamForm extends Component

public function mount(SemesterService $semesterService)
{

$this->semesters = $semesterService->getAllSemestersInAcademicYear(auth()->user()->school->academic_year_id);
}

Expand Down
1 change: 0 additions & 1 deletion app/Livewire/EditParentForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class EditParentForm extends Component
{
public User $parent;


public function render()
{
return view('livewire.edit-parent-form');
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/ListFeeInvoicesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class ListFeeInvoicesTable extends Component

public function mount()
{

$this->year = date('Y');
$this->queryAddon = [];
$this->status = $this->status ?? 'due';
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/ListGradeSystemsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class ListGradeSystemsTable extends Component

public function mount(MyClassService $myClassService)
{

// Get all class groups
$this->classGroups = $myClassService->getAllClassGroups();

Expand Down
1 change: 0 additions & 1 deletion app/Livewire/ListPromotionsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class ListPromotionsTable extends Component

public function mount(AcademicYearService $academicYearService)
{

if (!$this->academicYear) {
$this->academicYear = auth()->user()->school->load('academicYear')->academicYear->first();
} else {
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/NationalityAndStateInputFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class NationalityAndStateInputFields extends Component

public function mount()
{

// @phpstan-ignore-next-line
$this->nationalities = World::countries()->data->pluck('name');

Expand Down
1 change: 0 additions & 1 deletion app/Livewire/PayInvoiceForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class PayInvoiceForm extends Component

public function mount()
{

$this->feeInvoice->loadMissing('feeInvoiceRecords', 'feeInvoiceRecords.fee');
}

Expand Down
1 change: 0 additions & 1 deletion app/Livewire/PromoteStudents.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class PromoteStudents extends Component

public function mount(MyclassService $myClassService)
{

$this->classes = $myClassService->getAllClasses();

//set default values
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/RegistrationForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class RegistrationForm extends Component

public function mount(SchoolService $schoolService)
{

$this->schools = $schoolService->getAllSchools();
$this->roles = Role::whereIn('name', ['teacher', 'student', 'parent'])->get();
}
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/ResultChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class ResultChecker extends Component

public function mount(MyClassService $myClassService)
{

$this->academicYears = auth()->user()->school->academicYears;
$this->academicYear = auth()->user()->school->academicYear->id;
$this->updatedAcademicYear();
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/SemesterResultTabulation.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class SemesterResultTabulation extends Component

public function mount(SectionService $sectionService, MyClassService $myClassService)
{

//get semester and use it to fetch all exams in semester
$this->semester = auth()->user()->school->semester;
$this->classes = $myClassService->getAllClasses();
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/SetAcademicYear.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class SetAcademicYear extends Component

public function mount(AcademicYearService $academicYearService)
{

$this->academicYears = $academicYearService->getAllAcademicYears();
}

Expand Down
1 change: 0 additions & 1 deletion app/Livewire/SetSchool.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class SetSchool extends Component

public function mount(SchoolService $schoolService)
{

$this->schools = $schoolService->getAllSchools();
}

Expand Down
1 change: 0 additions & 1 deletion app/Livewire/SetSemester.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class SetSemester extends Component

public function mount(SemesterService $semesterService)
{

$this->semesters = $semesterService->getAllSemestersInAcademicYear(auth()->user()->school->academicYear->id);
}

Expand Down
1 change: 0 additions & 1 deletion app/Livewire/ShowAcademicYear.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class ShowAcademicYear extends Component

public function mount(AcademicYear $academicYear)
{

$this->academicYear = $academicYear->loadMissing('semesters');
}

Expand Down
1 change: 0 additions & 1 deletion app/Livewire/ShowAccountApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class ShowAccountApplication extends Component

public function mount()
{

$this->applicant->loadMissing('accountApplication.statuses');
}

Expand Down
1 change: 1 addition & 0 deletions app/Models/AccountApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class AccountApplication extends Model

protected $fillable = ['role_id', 'user_id'];
protected $accountStatuses = ['approved', 'rejected', 'under review', 'user action required'];

/**
* Get the user that owns the AccountApplication.
*/
Expand Down

0 comments on commit 64251b8

Please sign in to comment.