@props([ 'profile', 'featured' => false, 'currency' => null, 'currencySymbol' => null, 'showCategory' => true ])
{{ $profile->name }}, {{ $profile->age }} years old from {{ $profile->location }} @if($profile->featured)
Featured
@endif @if(isset($profile->deadline) && $profile->deadline) @php $daysLeft = \Carbon\Carbon::now()->diffInDays($profile->deadline, false); @endphp @if($daysLeft > 0)
{{ $daysLeft }} days left
@elseif($daysLeft === 0)
Last day
@else
Deadline passed
@endif @endif

{{ $profile->name }}

{{ $profile->age }} years
{{ $profile->location }}

{{ \Illuminate\Support\Str::limit($profile->story, 120) }}

@if($profile->needs && is_object($profile->needs) && method_exists($profile->needs, 'count') && $profile->needs->count() > 0)
@foreach($profile->needs->take(3) as $need) {{ \Illuminate\Support\Str::limit($need->title, 15) }} @endforeach @if($profile->needs->count() > 3) +{{ $profile->needs->count() - 3 }} more @endif
@endif
{{ $profile->formatted_raised }} raised of {{ $profile->formatted_goal }}
@if($showCategory && isset($profile->category)) {{ $profile->category }} @else @endif
@once @endonce