diff --git a/app/Domain/EquipmentExport.php b/app/Domain/EquipmentExport.php index 01966703..d203ff7c 100644 --- a/app/Domain/EquipmentExport.php +++ b/app/Domain/EquipmentExport.php @@ -37,7 +37,7 @@ public function generator(): Generator $equipmentItem->id_number, $equipmentItem->name, $equipmentItem->labels?->implode(", "), - $equipmentItem->is_mobile, + $equipmentItem->is_mobile ? "Tak" : "Nie", $equipmentItem->assignee->profile->full_name ?? "", $equipmentItem->assigned_at ? Date::dateTimeToExcel($equipmentItem->assigned_at) : "", ]; diff --git a/app/Models/EquipmentItem.php b/app/Models/EquipmentItem.php index 10326d48..224fb6a8 100644 --- a/app/Models/EquipmentItem.php +++ b/app/Models/EquipmentItem.php @@ -30,6 +30,7 @@ class EquipmentItem extends Model protected $casts = [ "assigned_at" => "date", + "is_mobile" => "boolean", "labels" => AsCollection::class, ]; protected $fillable = [