Files
ladill-meet/resources/views/meet/room/partials/meet-icon.blade.php
T
isaaccladandCursor 5197a163d1
Deploy Ladill Meet / deploy (push) Successful in 1m36s
Improve meeting room chat layout and enforce custom meet icons.
Keep share in the header only, make chat a full-height side panel that pushes video left, and load meet icons from an allowlisted set with cache busting.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 08:51:51 +00:00

24 lines
706 B
PHP

@props(['icon', 'class' => 'h-5 w-5'])
@php
$allowed = [
'applause',
'chat',
'close-breakout',
'lock',
'raise-hand',
'react',
'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';
@endphp
@if ($iconName)
<img src="{{ asset('images/meet-icons/'.$iconName.'.svg') }}?v={{ $iconVer }}" alt="" {{ $attributes->merge(['class' => 'meet-toolbar-icon '.$class]) }}>
@endif