@extends('admin.master') @section('content')
@if($user)

Exibindo {{$anuncios->total()}} anúncios de {{$user->dealership}}


@if (isset($errors) && count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@endif @if($anuncios->count() == 0)

Nenhum anúncio encontrado!

@endif
@foreach($anuncios as $anuncio) @endforeach
Publicação Carro Valor Negociações Status
{{ date('d/m/Y H:i:s', strtotime($anuncio->published_at)) }} @if(isset($anuncio->photos[0])) @endif {{$anuncio->brand->name}} {{$anuncio->fipe->model}} {{$anuncio->color->name}} {{$anuncio->fipe->year}} {{$anuncio->site_only ? 'Oferta exclusiva do site' : ''}} R$ {{ number_format($anuncio->price, 2, ',' ,'.') }} {{$anuncio->fipe_off}}
R$ {{ number_format($anuncio->fipe_price, 2, ',', '.') }}
{{ $anuncio->rooms->count() }} {{ $anuncio->calls->count() }} {{ $anuncio->car_status_id === 9 ? 'TURBINADO' : $anuncio->car_status->name}}
{!! $anuncios->render() !!}
@endsection