@extends('layouts.app') @section('title', '| Products') @section('content')
@lang('navbar.outstock')
@foreach($product as $pro) @endforeach
# @lang('products.bname') @lang('products.gname') @lang('products.category') @lang('products.price') @lang('products.quantity') @lang('products.discount') @lang('products.expire') @lang('products.control')
{{ $pro->p_id }} @if(!empty($pro->p_icon)) @endif {{ $pro->p_bname }} {{ $pro->p_gname }} {{ $pro->name }} {{get_currencySymbols() }} {{ $pro->p_price }} @if(preg_replace('/[^0-9]/','',$pro->p_quantity) < 4 ) There only {{ $pro->p_quantity }} @else {{ $pro->p_quantity }} @endif {{ $pro->p_discount }}% @if(strtotime($pro->p_exdate) < strtotime(Carbon\Carbon::now())) The product is expired @else {{ date('d-M-y', strtotime($pro->p_exdate)) }} @endif {{Form::open(['route' => ['product.destroy', $pro->p_id], 'method' => 'DELETE' , 'id' => 'deleteForm'])}} {{Form::button(' '.trans('button.delete'), ['class'=>'btn btn-xs btn-danger deleteBtn', 'type'=>'submit', 'data-id' => $pro->p_id]) }} {{Form::close()}}
    {{$product->links()}}
@endsection