@extends('dashboard.layouts.main') @section('title', getSiteName() . ' - Dashboard - Shop') @section('content')
@if(session('success'))
@endif

{{ __('Products') }}

@can('add shop') {{ __('Add New Product') }} @endcan
@if($products->isNotEmpty()) @can('delete shop') @endcan @foreach($products as $product) @can('delete shop') @endcan @endforeach
{{ __('Thumb') }} {{ __('Title') }} {{ __('View on site') }} {{ __('Created At') }} {{ __('Sort Order') }} {{ __('Views') }} {{ __('Status') }}{{ __('Delete') }}
{{ $product->title }}
                                                                                @else
                                                                                    {{ asset('assets/images/application/product.svg') }}
                                                                                @endif {{ $product->getInfo()->title }} {{ __('Open') }} @if($product->created_at) {{ Carbon\Carbon::parse($product->created_at)->format('d.m.Y') }}
{{ Carbon\Carbon::parse($product->created_at)->format('H:i') }} @endif
{{ $product->sort_order }} {{ $product->views }} @if($product->status) Active @else Inactive @endif
@else

{{ __('Products not found.') }}

@endif
@endsection @section('footer-scripts') @endsection