File tree 4 files changed +17
-6
lines changed
resources/views/livewire/kanban-board
4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
<div class =" card mb-3 cursor-grab" id =" {{ $record [' id' ] } }" >
2
2
<div class =" card-body p-3 text-wrap" >
3
- <p class =" mb-0 " >{{ $record [' title' ] } } </p >
3
+ <h5 class =" mb-1 " >{{ $record [' title' ] } } </h5 >
4
4
@include (' laravel-crm::partials.labels' ,[
5
5
' labels' => $record [' labels' ],
6
6
' limit' => 3
7
7
] )
8
8
<div class =" mt-2" >
9
- <a href =" {{ url (route (' laravel-crm.' . \Illuminate \Support \Str:: plural ($model ). ' .show' , $record [' id' ])) } }" >{{ $record [' number' ] } } </a >
9
+ <a href =" {{ url (route (' laravel-crm.' . \Illuminate \Support \Str:: plural ($model ). ' .show' , $record [' id' ])) } }" >{{ $record [' number' ] } } </a >
10
+ </div >
11
+ <div class =" mt-2" >
12
+ @if ($record [' amount' ] )
13
+ {{ money ($record [' amount' ], $record [' currency' ]) } }
14
+ @endif
10
15
<div class =" mb-0 d-inline-block float-right" ><i class =" fa fa-user-circle" aria-hidden =" true" ></i ></div >
11
16
</div >
12
17
</div >
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ public function records(): Collection
37
37
'title ' => $ deal ->title ,
38
38
'labels ' => $ deal ->labels ,
39
39
'stage ' => $ deal ->pipelineStage ->id ?? $ this ->firstStageId (),
40
- 'number ' => $ deal ->deal_id
40
+ 'number ' => $ deal ->deal_id ,
41
+ 'amount ' => $ deal ->amount ,
42
+ 'currency ' => $ deal ->currency ,
41
43
];
42
44
});
43
45
}
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ public function records(): Collection
36
36
'title ' => $ lead ->title ,
37
37
'labels ' => $ lead ->labels ,
38
38
'stage ' => $ lead ->pipelineStage ->id ?? $ this ->firstStageId (),
39
- 'number ' => $ lead ->lead_id
39
+ 'number ' => $ lead ->lead_id ,
40
+ 'amount ' => $ lead ->amount ,
41
+ 'currency ' => $ lead ->currency ,
40
42
];
41
43
});
42
44
}
Original file line number Diff line number Diff line change 9
9
10
10
class LiveQuoteBoard extends KanbanBoard
11
11
{
12
- public $ model = 'deal ' ;
12
+ public $ model = 'quote ' ;
13
13
14
14
public function stages (): Collection
15
15
{
@@ -37,7 +37,9 @@ public function records(): Collection
37
37
'title ' => $ quote ->title ,
38
38
'labels ' => $ quote ->labels ,
39
39
'stage ' => $ quote ->pipelineStage ->id ?? $ this ->firstStageId (),
40
- 'number ' => $ quote ->quote_id
40
+ 'number ' => $ quote ->quote_id ,
41
+ 'amount ' => $ quote ->total ,
42
+ 'currency ' => $ quote ->currency ,
41
43
];
42
44
});
43
45
}
You can’t perform that action at this time.
0 commit comments