Deploy Ladill Meet / deploy (push) Successful in 37s
Speakers get a full-screen spotlight with overlapping audience avatars; hosts can configure panels in the green room and switch layouts live. Co-authored-by: Cursor <cursoragent@cursor.com>
30 lines
869 B
PHP
30 lines
869 B
PHP
@props(['icon', 'class' => 'h-5 w-5', 'inverted' => true])
|
|
|
|
@php
|
|
$allowed = [
|
|
'applause',
|
|
'chat',
|
|
'close-breakout',
|
|
'end',
|
|
'leave',
|
|
'lock',
|
|
'personal',
|
|
'panel',
|
|
'raise-hand',
|
|
'react',
|
|
'schedule',
|
|
'screen-share',
|
|
'share',
|
|
'start-breakout',
|
|
'upload-file',
|
|
];
|
|
$iconName = in_array($icon, $allowed, true) ? $icon : null;
|
|
$iconPath = $iconName ? public_path('images/meet-icons/'.$iconName.'.svg') : null;
|
|
$iconVer = ($iconPath && is_file($iconPath)) ? (@filemtime($iconPath) ?: '1') : '1';
|
|
$iconClass = trim(($inverted ? 'meet-toolbar-icon ' : '').$class);
|
|
@endphp
|
|
|
|
@if ($iconName)
|
|
<img src="{{ asset('images/meet-icons/'.$iconName.'.svg') }}?v={{ $iconVer }}" alt="" {{ $attributes->merge(['class' => $iconClass]) }}>
|
|
@endif
|