@extends('back.layouts.app') @push('title', __('All Products')) @push('css') @endpush @section('content')
{{ __('All Products') }} {{ __('Add New Product') }}
@foreach($products as $product) @endforeach
#ID {{ __('Name') }} {{ __('Category') }} {{ __('Stocks') }} {{ __('Price') }} {{ __('Updated At') }}
{{ $product->id }} {{ $product->name }} {{ $product->category->name }} {{ $product->stocks->count() }} {{config('app.currency_symbol')}}{{ money($product->price) }} {{ $product->views_count }} {{ $product->sales_count }} {{ $product->updated_at->diffForHumans() }}
{{ $products->links() }}
@csrf
@endsection @push('js') @endpush