@extends('backEnd.layouts.master') @section('title','Inhouse Products') @section('content')

Inhouse Products Library

@forelse($data as $key=>$value) @empty @endforelse
SL Image Product Info Category Price & Stock Features Status Action
{{ $data->firstItem() + $key }} product
{{ Str::limit($value->name, 40) }}
@php $isDigital = (isset($value->is_digital) && $value->is_digital) || (isset($value->product_type) && $value->product_type === 'digital'); @endphp {{ $isDigital ? 'Digital' : 'Physical' }}

{{$value->category ? $value->category->name : 'Uncategorized'}}

৳{{ number_format($value->new_price, 2) }}
Stock: {{$value->stock}}
@if($value->topsale==1) Hot Deal @endif @if($value->feature_product==1) Featured @endif @if($value->topsale!=1 && $value->feature_product!=1) - @endif
@if($value->status==1) Active @else Inactive @endif
{{-- Status Toggle --}} @if($value->status == 1)
@csrf
@else
@csrf
@endif {{-- Edit --}} {{-- Delete --}}
@csrf
No products found!
Showing {{ $data->firstItem() }} to {{ $data->lastItem() }} of {{ $data->total() }} results
{{$data->links('pagination::bootstrap-4')}}
@endsection