@blaze {{-- Report button trigger - the modal is rendered once in layouts/main via partials/report-modal --}} @props([ 'releaseId' => null, 'releaseGuid' => null, 'size' => 'sm', // sm, md, lg 'variant' => 'icon', // icon, button, button-lg, text 'reportedCount' => 0, ]) @php $reportedCount = (int) $reportedCount; $hasReports = $reportedCount > 0; $reportTitle = $hasReports ? 'This release has already been reported. Click to submit another report.' : 'Report this release'; @endphp @auth @if($variant === 'icon') @elseif($variant === 'button-lg') @elseif($variant === 'button') @else @endif @endauth