@extends('backEnd.admin.layouts.master') @section('title') Products @endsection @section('css') @endsection @section('body')
@if(Auth::guard('admin')->check())
@csrf
@csrf
@endif
@php($i=1) @if($data->count() > 0) @foreach($data as $item) @endforeach @else @endif
SL. Image Product Name Category Name SKU Stock Price Sale Price Attributes Status Actions
{{$i++}} {{$item->name}} @foreach($item->get_categories as $key => $cat){{$key!=0 ?", ":""}}{{$cat->category_name}}@endforeach {{$item->sku}} {{$item->stock}} {{$web_settings->currency_sign}} {{$item->price}} {{$web_settings->currency_sign}} {{$item->sale_price}} @foreach($item->get_attributes as $attrb) {{ optional($attrb->get_attribute)->title ?? 'No title available' }} - {{'('}} @foreach($attrb->get_attribute_items as $key => $at_item) {{$key == 0 ? "" : ","}} {{ optional($at_item->get_attribute_item)->item_title ?? 'No item title' }} @endforeach {{')'}}
@endforeach
@if($item->status == 1) Published @else Unpublished @endif @if($item->is_assigned) Assigned @endif @if(!$item->is_assigned) @endif
No Data Found!
{{$data->links()}}
{{--add modal--}} {{--user assing modal--}} @endsection @section('js') @endsection