# |
@lang('products.bname') |
@lang('products.gname') |
@lang('products.category') |
@lang('products.price') |
@lang('products.quantity') |
@lang('products.discount') |
@lang('products.expire') |
@lang('products.control') |
@foreach($product as $pro)
{{ $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 - $pro->sale_quantity ) < 4 )
There only {{ $pro->p_quantity - $pro->sale_quantity }}
@else
{{ $pro->p_quantity - $pro->sale_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()}}
|
@endforeach