@extends('admin.layouts.app') @section('title', __('product_seo')) @section('breadcrumb') @endsection @section('page-header')

{{ __('product_seo') }}

{{ __('manage_product_seo_description') }}

{{ __('manage_products') }}
@endsection @section('content')
{{ __('products_seo_overview') }}
@foreach($availableLocales as $localeCode => $localeData) @endforeach @forelse($products as $product) @foreach($availableLocales as $localeCode => $localeData) @php $translation = $product->translate($localeCode); $hasTranslation = $translation && $translation->name; $hasSeo = $translation && ($translation->meta_title || $translation->meta_description); @endphp @endforeach @empty @endforelse
{{ __('product') }} {{ __('code') }} {{ __('categories') }} {{ $localeData['native'] }} {{ __('actions') }}
@if($product->main_image) {{ $product->name }} @else
@endif
{{ $product->name ?: $product->code }}
SKU: {{ $product->sku }}
{{ $product->code }} @if($product->categories->count() > 0) @foreach($product->categories->take(2) as $category) {{ $category->name }} @endforeach @if($product->categories->count() > 2) +{{ $product->categories->count() - 2 }} more @endif @else {{ __('no_categories') }} @endif
{{ $hasTranslation ? __('translated') : __('not_translated') }} {{ $hasSeo ? __('seo_configured') : __('seo_missing') }}

{{ __('no_products_found') }}

{{ __('add_first_product') }}
@if($products->hasPages()) @endif
{{ __('total_products') }}

{{ $products->total() }}

{{ __('products_with_seo') }}

{{ $products->where(function($product) { return $product->meta_title || $product->meta_description; })->count() }}

{{ __('missing_seo') }}

{{ $products->where(function($product) { return !$product->meta_title && !$product->meta_description; })->count() }}

{{ __('avg_seo_score') }}

72/100

@endsection @push('styles') @endpush @push('scripts') @endpush