@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['active'] == 1) @else @endif @endforeach @endif
ID Name Sale Price Regular Price Status Action
{{$product['id']}} {{$product['product_name']}} {{$product['sale_price']}} {{$product['regular_price']}}ActiveNot Active Edit Delete
ID Name Sale Price Regular Price Status Action
@endsection @section('scripts') @endsection