#131: Change Service Type color on PDF
This commit is contained in:
parent
3e93a4f841
commit
f8bbae5c84
@ -1,5 +1,6 @@
|
||||
# Changelog
|
||||
**2025-04-20**
|
||||
**UPCOMING**
|
||||
- Fixed #131 - Add Service Type background color on PDFs
|
||||
- Fixed #155 - Invoice internal ID should be 5 digits
|
||||
- Fixed #154 - Logo name doesn't get replicated
|
||||
- Fixed #153 - Improved product service form again
|
||||
|
@ -34,4 +34,15 @@ public function getColor(): string
|
||||
self::MISC => 'misc',
|
||||
};
|
||||
}
|
||||
|
||||
public function getColorHex(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::EMB => '#9900BB',
|
||||
self::SCP => '#0088FF',
|
||||
self::DTG => '#57cded',
|
||||
self::VINYL => '#22AA22',
|
||||
self::MISC => '#0000FF',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,8 @@
|
||||
</div>
|
||||
|
||||
<div class="col-4 text-center">
|
||||
<div class="bg-info text-white flex-nowrap">
|
||||
<div class="fs-5 fw-bold">{{$order->order_type->getLabel()}}</div>
|
||||
<div class="text-white flex-nowrap" style="background-color: {{$order->order_type->getColorHex()}}">
|
||||
<div class="fs-5 fw-bold">{{$order->order_type->name}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user