@extends("layouts.dashboard") @section("wrapper")
@include("layouts.second-header")
@lang("Retour")

@lang("Liste") des {{ $title ?? "Titre" }}

{{ $petiteannonces->total() }} @lang("Enregistrement")
@include("layouts.alert")
@if($isannonceur==null)
@endif
{{--
--}}

@if(count($petiteannonces) > 0) @foreach($petiteannonces as $petiteannonce) @endforeach @else @endif
@lang("annonceur_id") @lang("rubrique_id") @lang("libelle") @lang("date_parution") @lang("Statut annonce") Actions
{{$petiteannonce->annonceur->nom_prenoms_contact}} {{$petiteannonce->rubrique->libelle}} {{$petiteannonce->libelle}} {{\Carbon\Carbon::parse($petiteannonce->date_parution)->format('d/m/Y')}} @if($petiteannonce->statutannonce_id!=null){{$petiteannonce->statutannonce->libelle}}@endif @if(Auth::user()->annonceur_id==null)@if($petiteannonce->statutannonce_id==1) @lang("Publier") @lang("Supprimer") @endif @endif @if(Auth::user()->annonceur_id!=null) @if($petiteannonce->natureAnnonce->id==1) @if($petiteannonce->est_paye==0) @lang("Passer en Premium") @endif @endif @endif @lang("Afficher") @lang("Editer") @can('petiteannonce-statut') @if($petiteannonce->active == 1) @else @endif @endcan
@lang("listeempty")
{{ $petiteannonces->appends(request()->input())->links('layouts.paginationlinks') }}
@endsection