@extends('backend.admin-master') @section('style') @endsection @section('site-title') {{__('All Products')}} @endsection @section('content')
@include('backend/partials/message') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{$error}}
  • @endforeach
@endif

{{__('All Products')}}

@php $b=0; @endphp @foreach($all_products as $key => $event)
@foreach($event as $data) @endforeach
{{__('ID')}} {{__('Title')}} {{__('Image')}} {{__('Price')}} {{__('Category')}} {{__('Stock')}} {{__('Status')}} {{__('Action')}}
{{$data->id}} {{$data->title}}
@php $event_img = get_attachment_image_by_id($data->image,'thumbnail',true); @endphp @if (!empty($event_img))
@endif
{{site_currency_symbol().$data->regular_price}} {{site_currency_symbol().$data->sale_price}} {{get_product_category_by_id($data->category_id)}} @if($data->stock_status == 'in_stock') {{__('In Stock')}} @else {{__('Out Of Stock')}} @endif @if($data->status == 'draft') {{__('Draft')}} @else {{__('Publish')}} @endif
@csrf
@php $b++; @endphp @endforeach
@endsection @section('script') @endsection