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

{{ __('Products') }}

@if (count($products) > 0)
@foreach ($products as $product) @endforeach
{{ __('Name') }} {{ __('Image') }} {{ __('Price') }} {{ __('Category') }} {{ __('Actions') }}
{{ app()->getLocale() == 'ar' ? $product-> label_ar : $product-> label_en }} @if(!empty($product-> img)) @endif {{ number_format($product-> price,3) }} {{ app()->getLocale() == 'ar' ? @$product-> category-> label_ar : @$product-> category-> label_en }} {{ __('Edit') }}
@csrf @method('DELETE')
{{ $products->appends(Request::all())->links() }}
@else

{{ __('No products found.') }}

@endif
@endsection