@extends('admin.layouts.app') @section('content')

{{!empty($recovery) ? __('Recovery') : __("All Cars")}}

@if(empty($recovery)) {{__("Add new car")}} @endif
@include('admin.message')
@if(!empty($rows))
{{csrf_field()}}
@endif

{{__('Found :total items',['total'=>$rows->total()])}}

@if($rows->total() > 0) @foreach($rows as $row) @endforeach @else @endif
{{ __('Name')}} {{ __('Location')}} {{ __('Author')}} {{ __('Status')}} {{ __('Reviews')}} {{ __('Date')}}
@if($row->is_featured) {{ __("Featured") }} @endif {{$row->title}} {{$row->location->name ?? ''}} @if(!empty($row->author)) {{$row->author->getDisplayName()}} @else {{__("[Author Deleted]")}} @endif {{ $row->status }} {{ $row->getNumberReviewsInService() }} {{ display_date($row->updated_at)}} {{__('Edit')}}
{{__("No car found")}}
{{$rows->appends(request()->query())->links()}}
@endsection