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

@if(Auth::guard('admin')->check()) {{-- Add Product --}} @endif
@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 Product Name Price Stock Amount Status Action
{{$product['id']}} {{$product['product_name']}} £@if((float)$product['sale_price']>0){{number_format((float)$product['sale_price'], 2, '.', '') }} @else {{ number_format((float)$product['regular_price'], 2, '.', '') }} @endif @if((int)$product['quantity']>=0) {{(int)$product['quantity']}} @else 0 @endifActiveNot Active Edit Delete
ID Product Name Price Stock Amount Status Action
@endsection @section('scripts') {{-- --}} @endsection