File tree 4 files changed +17
-3
lines changed
4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ public function toArray(Request $request): array
26
26
'status_formatted ' => str ($ this ->status ->name )->headline (),
27
27
'content ' => $ this ->content ,
28
28
'system_prompt ' => $ this ->system_prompt ,
29
+ 'team ' => TeamResource::make ($ this ->team ),
29
30
];
30
31
}
31
32
}
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ class TeamResource extends JsonResource
14
14
*/
15
15
public function toArray (Request $ request ): array
16
16
{
17
- return parent ::toArray ($ request );
17
+ return [
18
+ 'id ' => $ this ->id ,
19
+ 'name ' => $ this ->name ,
20
+ 'created_at ' => $ this ->created_at ,
21
+ 'updated_at ' => $ this ->updated_at ,
22
+ 'users ' => UserResource::collection ($ this ->users ),
23
+ ];
18
24
}
19
25
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const theme = ref('dark')
40
40
<ApplicationMark class =" block h-9 w-auto" />
41
41
</Link >
42
42
<ul class =" menu menu-horizontal px-1" >
43
- <li class =" hidden lg :flex" >
43
+ <li class =" hidden sm :flex" >
44
44
<Link :href =" route('projects.index')"
45
45
:class =" { 'underline' : route().current('projects.index') }" >
46
46
Projects
Original file line number Diff line number Diff line change @@ -83,8 +83,15 @@ const sendDailyReport = () => {
83
83
end: {{ project.data.end_date }}
84
84
</span >
85
85
</div >
86
- </div >
87
86
87
+ <div class =" avatar-group -space-x-6 rtl:space-x-reverse mt-2" >
88
+ <div class =" avatar" v-for =" user in project.data.team.users" :key =" user.id" >
89
+ <div class =" w-10" >
90
+ <img :src =" user.profile_photo_url" />
91
+ </div >
92
+ </div >
93
+ </div >
94
+ </div >
88
95
<div class =" flex justify-end gap-2 items-center" >
89
96
<Kickoff :project =" project.data" />
90
97
<Link
You can’t perform that action at this time.
0 commit comments