Mis invitaciones.
Todas las invitaciones
@forelse ($invitations as $invitation)
@empty
{{ $invitation->type->name }}
@php
$planName = $invitation->plan ? $invitation->plan->name : 'Free';
$isFreePlan = $invitation->plan && $invitation->plan->is_free;
$isVipPlan = $invitation->plan && stripos($invitation->plan->name, 'vip') !== false;
@endphp
@if($isFreePlan)
{{ strtoupper($planName) }}
@elseif($isVipPlan)
{{ strtoupper($planName) }}
@else
{{ strtoupper($planName) }}
@endif
@if(!$invitation->demo && auth()->user()->role_id != \App\Models\User::BUSINESS_ROL_ID)
@endif
@php
$backgroundImage = ($invitation->variables->where('name', 'backgroundImage')->first());
$cover = $backgroundImage ? Storage::url($backgroundImage['value']) : asset('img/templates/'.strtolower($invitation->template->name).'/cover.jpg');
@endphp
Aún no tienes una invitación creada
@endforelse
{!! $invitations->links('custom-pagination-links') !!}
@endif