File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
resources/views/filament/resources/tickets Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 44
55use App \Filament \Resources \TicketResource \Pages ;
66use App \Filament \Resources \TicketResource \RelationManagers ;
7+ use App \Models \Epic ;
78use App \Models \Project ;
89use App \Models \Ticket ;
910use App \Models \TicketPriority ;
@@ -82,7 +83,13 @@ public static function form(Form $form): Form
8283 )
8384 ->default (fn () => request ()->get ('project ' ))
8485 ->required (),
85-
86+ Forms \Components \Select::make ('epic_id ' )
87+ ->label (__ ('Epic ' ))
88+ ->searchable ()
89+ ->reactive ()
90+ ->options (function ($ get , $ set ) {
91+ return Epic::where ('project_id ' , $ get ('project_id ' ))->pluck ('name ' , 'id ' )->toArray ();
92+ }),
8693 Forms \Components \Grid::make ()
8794 ->columns (12 )
8895 ->columnSpan (2 )
Original file line number Diff line number Diff line change @@ -74,6 +74,19 @@ class="flex items-center gap-1 text-gray-500 hover:text-gray-700 font-medium tex
7474 </div >
7575 </div >
7676
77+ <div class =" w-full flex flex-col gap-1 pt-3" >
78+ <span class =" text-gray-500 text-sm font-medium" >
79+ {{ __ (' Epic' ) } }
80+ </span >
81+ <div class =" w-full flex items-center gap-1 text-gray-500" >
82+ @if ($record -> epic )
83+ {{ $record -> epic -> name } }
84+ @else
85+ -
86+ @endif
87+ </div >
88+ </div >
89+
7790 <div class =" w-full flex flex-col gap-1 pt-3" >
7891 <span class =" text-gray-500 text-sm font-medium" >
7992 {{ __ (' Estimation' ) } }
You can’t perform that action at this time.
0 commit comments