diff --git a/assets/icons/lucide/door-open.svg b/assets/icons/lucide/door-open.svg
new file mode 100644
index 0000000..1627d0f
--- /dev/null
+++ b/assets/icons/lucide/door-open.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icons/lucide/square-parking.svg b/assets/icons/lucide/square-parking.svg
new file mode 100644
index 0000000..01f22b3
--- /dev/null
+++ b/assets/icons/lucide/square-parking.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/Enum/ResourceType.php b/src/Enum/ResourceType.php
index 8f7b81b..7938c4f 100644
--- a/src/Enum/ResourceType.php
+++ b/src/Enum/ResourceType.php
@@ -21,6 +21,8 @@ enum ResourceType: string
case DESK = 'desk';
case PARKING = 'parking';
case MONITOR = 'monitor';
+ case ROOM = 'room';
+ case CAR = 'car';
public function label(): string
{
@@ -28,6 +30,8 @@ enum ResourceType: string
self::DESK => 'Schreibtisch',
self::PARKING => 'Parkplatz',
self::MONITOR => 'Mobiler Monitor',
+ self::ROOM => 'Zimmer',
+ self::CAR => 'Fahrzeug',
};
}
@@ -37,6 +41,8 @@ enum ResourceType: string
self::DESK => 'Schreibtische',
self::PARKING => 'Parkplätze',
self::MONITOR => 'Mobile Monitore',
+ self::ROOM => 'Zimmer',
+ self::CAR => 'Fahrzeuge',
};
}
@@ -46,12 +52,18 @@ enum ResourceType: string
self::DESK => 'Einen Platz im Büro reservieren.',
self::PARKING => 'Einen Stellplatz reservieren.',
self::MONITOR => 'Einen mobilen Monitor ausleihen.',
+ self::ROOM => 'Ein Zimmer reservieren.',
+ self::CAR => 'Ein Fahrzeug reservieren.',
};
}
/**
* What a ResourceGroup of this kind is called: an office has rooms, a car park has areas,
* a portable device a place it is kept.
+ *
+ * A kind that is not split up still needs a word here, because the admin screen always
+ * offers to add a group. Leaving it unused is the supported case: a kind with no groups is
+ * listed flat, on the plan as on the admin screen.
*/
public function groupLabel(): string
{
@@ -59,6 +71,8 @@ enum ResourceType: string
self::DESK => 'Raum',
self::PARKING => 'Bereich',
self::MONITOR => 'Standort',
+ self::ROOM => 'Standort',
+ self::CAR => 'Standort',
};
}
@@ -66,8 +80,10 @@ enum ResourceType: string
{
return match ($this) {
self::DESK => 'lucide:armchair',
- self::PARKING => 'lucide:car',
+ self::PARKING => 'lucide:square-parking',
self::MONITOR => 'lucide:monitor',
+ self::ROOM => 'lucide:door-open',
+ self::CAR => 'lucide:car',
};
}
}