@extends('admin.layout') @section('title') Products @endsection @section('content')

Products

@if(session()->has('success'))
@endif @if(session()->has('errorMessage'))
@endif
Add new Product
@foreach($products as $key => $product) @endforeach
# Name Image Price Brand Active Gender Edit Delete
{{ $key + 1 }} {{ $product->name }} name/" . $product->image) }}" alt="Product {{ $product->name }}" class="img-fluid admin-img" /> ${{ $product->price}} {{ $product->brand_name}} @if($product->is_active == 1) Yes @else No @endif @if($product->gender_id == 0) Female @else Male @endif
@csrf @method("DELETE")
{{ $products->links('vendor.pagination.bootstrap-4') }}
# Name Image Price Brand Active Gender Edit Delete
@endsection @section('pageScripts') @endsection