@if (auth()->user() == $user && $user->dogs->count() < 10) @endif

About my dogs

@foreach ($user->dogs as $index => $dog)
@if (auth()->user() == $user) @endif {{ $dog->name }} Dog {{ $dog->breed->name }}

Bio

{{ Str::limit($dog->description, 100) }}

{{ $dog->description }}

@if (strlen($dog->description) > 100) @endif

{{ $dog->name }}’s character traits

@if($dog->temperaments) @php $dog_selected_temperaments = $dog->temperaments->pluck('name', 'id')->toArray(); ksort($dog_selected_temperaments); @endphp {{-- @foreach ($dogTemperaments as $temperament) --}} @foreach ($dog_selected_temperaments as $temperament)
{{ $temperament }}
@endforeach @endif @if (auth()->user() == $user) @endif
@php $dog_vaccines = App\Models\DogVaccine::where('dog_id', $dog->id)->orderBy('created_at', 'asc')->get(); @endphp @if (auth()->user() != $user && count($dog_vaccines) > 0)

Vaccines

@elseif(auth()->user() == $user)

Vaccines

@endif @if (auth()->user() == $user)

Add vaccine

@endif @foreach ($dog_vaccines as $vaccine)
{{ $vaccine->vaccine($vaccine->vaccine_id) }}
{{ $vaccine->vaccine_date }}
@endforeach
@endforeach
@include('livewire.users.partials.user-dog-photos', ['glightbox_tab' => 'dog_photos'])