@extends('layouts.admin.master') @section('styles') @endsection @section('body-content')

@if(Auth::guard('admin')->check()) Add Product @endif
All Products
@if ( session()->has('message') )
Well done! {{ session('message') }}
@elseif(session()->has('error'))
Oh snap! {{ session('error') }}
@endif
@if(isset($products)) @foreach($products as $product) @if($product['flags'] == 1) @else @endif @endforeach @endif <
ID Name Stock Sale Price Regular Price Status Action
{{$product['id']}} {{$product['product_name']}} {{$product['quantity']}} {{$product['sale_price']}} {{$product['regular_price']}}{{App\Models\Product::STATUS_ACTIVE}}{{App\Models\Product::STATUS_NOT_ACTIVE}} @if(Auth::guard('admin')->check()) Edit Delete @endif Stock Update
ID Name Stock Sale Price Regular Price Status Action
@endsection @section('scripts') @endsection