Use count on availSeats

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-04-18 02:06:42 -07:00
parent e84ba0c7a0
commit a8a3ca3624

View file

@ -236,7 +236,7 @@ class LicensesController extends Controller
$license = License::with('assignedusers')->find($licenseId);
$users_count = User::where('autoassign_licenses', '1')->count();
$total_seats_count = $license->totalSeatsByLicenseID();
$available_seats_count = $license->availableSeats();
$available_seats_count = $license->availableSeats()->count();
$checkedout_seats_count = ($total_seats_count - $available_seats_count);