@extends('layouts.account') @section('title', __('My listings')) @section('heading', __('My listings')) @section('subheading', __('Everything you have drafted, submitted and published.')) @section('actions') {{ __('Create a listing') }} @endsection @section('account') @if (session('error')) {{ session('error') }} @endif @if ($remaining !== null && $remaining <= 2) {{ trans_choice( 'You can publish one more listing on this account.|You can publish :count more listings on this account.', $remaining, ['count' => $remaining], ) }} {{ __('Verified sellers have no limit.') }} @endif {{-- Status tabs. Counts come from one grouped query, not one per tab. --}}
! request('status'), 'pill-idle' => request('status')])> {{ __('All') }} {{ $counts->sum() }} @foreach ($statuses as $value => $label) @continue(! $counts->has($value)) request('status') === $value, 'pill-idle' => request('status') !== $value])> {{ $label }} {{ $counts[$value] }} @endforeach
@if ($listings->isEmpty()) {{ __('Create a listing') }} @else
@foreach ($listings as $listing)
@if ($listing->isLive()) {{ __('View') }} @endif {{ __('Photos') }} {{ $listing->isEditable() ? __('Edit') : __('Open') }}
@endforeach
{{ $listings->links() }}
@endif @endsection