@extends('backend.admin-master') @section('style') @endsection @section('site-title') {{__('All Products')}} @endsection @section('content')

{{__('All Products')}}

@php $b=0; @endphp @foreach($all_products as $key => $event)
@foreach($event as $data) @endforeach
{{__('ID')}} {{__('Title')}} {{__('Image')}} {{__('Price')}} {{__('Category/Subcategory')}} {{__('Sales')}} {{__('Status')}} {{__('Action')}}
{{$data->id}} {{$data->title}}
@php $event_img = get_attachment_image_by_id($data->image,'thumbnail',true); @endphp @if (!empty($event_img))
@endif
{{amount_with_currency_symbol($data->regular_price)}} {{amount_with_currency_symbol($data->sale_price)}} {{get_product_category_by_id($data->category_id)}} @if(!is_null($data->subcategory)) -> {{optional($data->subcategory)->title}} @endif {{$data->sales}} @if($data->status == 'draft') {{__('Draft')}} @else {{__('Publish')}} @endif
@csrf
@php $b++; @endphp @endforeach
@endsection @section('script') @endsection