@props([
'student',
'interactive' => false,
'img' => null,
'bg' => null,
'theme' => null,
'nobg' => false, // leave background empty
'showPhoto' => false
])
@if($showPhoto === true)
@if($student->photo === null)
merge([ 'class' => "max-w-24 max-h-24 rounded-xl " ]) }}>
@else
merge([ 'class' => "max-w-24 max-h-24 rounded-xl " ]) }}>
@endif
@else
@php
$img = $img ?? ($student->avatar ?? 'YOUR-TEXT.png');
$bg = $bg ?? $student->background_image;
$theme = $theme ?? ($student->theme ?? 'dark');
@endphp