Skip to content

Commit

Permalink
Improve phone number call
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Dec 24, 2024
1 parent 6ffba14 commit 25410fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Orchid/Screens/SecretSantaScreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ public function layout(): array
TD::make('receiver.telegram', 'Контакты')
->width(200)
->render(function (SecretSantaParticipant $participant) {
return "<strong class='d-block'>".e($participant->receiver?->telegram).'</strong>'
.'<span>'.e($participant->receiver?->phone).'</span>';
return sprintf(
"<strong class='d-block'>%s</strong><a href='tel:%s'>%s</a>",
e($participant->receiver?->telegram),
e($participant->receiver?->phone),
e($participant->receiver?->phone)
);
}),

TD::make('tracking_number', 'Трек-номер'),
Expand Down

0 comments on commit 25410fa

Please sign in to comment.