@extends('layout.admin.master') @section('meta-title', 'Products') @section('body-class', 'menu-position-side menu-side-left full-screen with-content-panel') @section('breadcrumbs') @endsection @push('asset-top') @endpush @section('content')
Products
Add
@foreach($products as $product) @php $prices = json_decode($product->price, true); $quantity = json_decode($product->quantity, true); @endphp @endforeach
# Name Category Price Quantity Action
@if($product->thumbnail)@endif {{$product->name_en}} {{(app()->currentLocale()=='en')?$product->cat_en:$product->cat_ar}} @foreach($prices as $key=>$value) {{$key}} : {{$value}}
@endforeach
@foreach($quantity as $key=>$value) {{$key}} : {{$value}}
@endforeach
{{ $products->links() }}
@endsection