9 months ago

Sort Collection

Posted 9 months ago by kshitizmittal
$requests = Applyleave::with(['employeedetails.departments','employeedetails.designations','employeedetails.officelocations'])->get();

Fetching All the leave requests using this.

Requirement is to show all the pending leave requests on top in a blade table.

Applyleave model has an attribute of status in which Pending, Rejected, Approved is there.

Please sign in or create an account to participate in this conversation.