@extends('layouts.app') @section('styles') @endsection @section('content')

{{ $user->name }} {{ $user->profile->last_name ?? '' }}

Location: {{ $user->profile->state ?? 'N/A' }}, {{ $user->profile->city ?? '' }}

Joined: {{ $user->created_at->toFormattedDateString() ?? '' }}

Total Ads: {{ $adsCount ?? '0' }}

@if ($ratingCount > 0)

Average Rating: @for ($i = 1; $i <= 5; $i++) @if ($i <= round($averageRating)) @else @endif @endfor ({{ number_format($averageRating, 1) }} / 5)
( from {{ $ratingCount }} {{ Str::plural('review', $ratingCount) }})

@else

No ratings yet.

@endif Back

Ads Posted by {{ $user->name ?? '' }}

@if ($ads->isEmpty())

No ads posted yet.

@else
@foreach ($ads as $ad)

{{ $ad->title ?? '' }}

@if ($ad->is_free)

Free

@else

{{ config('app.currency_symbol') }} {{ number_format($ad->price, 2) }}

@endif

Brand: {{ $ad->brand->name ?? '' }}

{{ custom_limit($ad->description, 100) }}

Posted: {{ $ad->created_at ?? '' }}

{{--

Status: {{ $ad->status }}

--}} {{-- --}}

@endforeach
{{ $ads->links('pagination::bootstrap-5') }} @endif
@endsection