@if ($ringtone->content_type === 'sound_effect') @php $controlColors = [ '#808080', '#22c55e', '#f59e0b', '#ef4444', '#0ea5e9', '#8b5cf6', ]; $controlColor = $controlColors[abs(crc32((string) ($ringtone->slug ?: $ringtone->id))) % count($controlColors)]; @endphp @once @endonce

{{ $ringtone->title }}

@if ($ringtone->duration) {{ gmdate('i:s', $ringtone->duration) }} - @endif {{ number_format($ringtone->downloads) }} Downloads

Download
@elseif ($ringtone->isImageType())
{{ $ringtone->title }}

{{ $ringtone->content_type_label }}

{{ $ringtone->title }}

{{ number_format($ringtone->downloads) }} Downloads

Download
@else
@if ($ringtone->isAudioType()) @endif
@if ($ringtone->isAudioType()) @elseif ($ringtone->isVideoType()) @endif

{{ $ringtone->content_type_label }}

{{ $ringtone->title }}

@if ($ringtone->duration) {{ gmdate('i:s', $ringtone->duration) }} Sec - @endif {{ number_format($ringtone->downloads) }} Downloads

@php $chips = $ringtone->relationLoaded('tags') ? $ringtone->tags->pluck('name')->filter()->take(6)->values() : collect(); if ($chips->isEmpty() && !empty($ringtone->category?->name)) { $chips = collect([$ringtone->category->name]); } @endphp @foreach ($chips as $chip) {{ $chip }} @endforeach
Download
@endif