diff --git a/resources/views/ticket/index.blade.php b/resources/views/ticket/index.blade.php
index 85e2ddd..2a5c7cc 100644
--- a/resources/views/ticket/index.blade.php
+++ b/resources/views/ticket/index.blade.php
@@ -97,7 +97,7 @@ $userPr = Auth::user()->sites ?? collect([]);
{{ $ticket->site->name }} |
- {{ $ticket->type->label }}
+ {{ $ticket->type->label }}
|
@if ($ticket->file !== null)
@@ -119,6 +119,18 @@ $userPr = Auth::user()->sites ?? collect([]);
$cls = (!$cls && $ticket->status == TicketStatus::production()) ? 'text-success' : $cls;
$cls = (!$cls && $ticket->status == TicketStatus::inprogress()) ? 'text-dark' : $cls;
$cls = (!$cls && $ticket->status == TicketStatus::waiting()) ? 'text-white bg-danger' : $cls;
+ $ticketClass = 'bg-primary';
+ switch($ticket->type) {
+ case TicketType::bug():
+ $ticketClass = 'bg-danger';
+ break;
+ case TicketType::evolution():
+ $ticketClass = 'bg-success';
+ break;
+ case TicketType::newsletter():
+ $ticketClass = 'bg-warning';
+ break;
+ }
@endphp
| {{ $ticket->status->label }} |
@@ -135,20 +147,6 @@ $userPr = Auth::user()->sites ?? collect([]);
|