@extends('layouts.admin') @section('header-content') @endsection @section('content')
Filter @if( Auth::user()->can('modify_products')) @endif
All Products
@if(!empty($products[0]))
@if( Auth::user()->can('modify_products')) @endif @foreach($products as $key=>$product) @foreach($product->ProductPrices as $key=>$price) {{-- --}} {{-- --}} @if($key==0) {{--round(12*($price['distributor_price']))--}} {{----}} @endif @endforeach @if( Auth::user()->can('modify_products')) @endif @endforeach
# Name Product Code Retail Price in Pakistan Wholesale Price in Pakistan Distributor Price in Pakistan Vendor Price in Pakistan Retail Price in Dubai Wholesale Price in Dubai Created atAction
{{$key+1}} {{$product->name}} {{$product->product_code}}{{bcdiv($price['retail_price']*12, 1, 2)}}{{round(12*($price['retail_price']))}}{{bcdiv($price['wholesale_price']*12, 1, 2)}}{{round(12*($price['wholesale_price']))}}{{ bcdiv($price['distributor_price']*12, 1, 2) }} {{ bcdiv($price['vendor_price']*12, 1, 2) }}{{round(12*($price['distributor_price']))}}{{$product->created_at}}
    {{--
  • --}}
  • {{--
  • --}}
{!! method_field('DELETE') !!} {!! csrf_field() !!}

{{ $products->links() }}
@else

No Records Found

@endif
@endsection @section('footer-content') @endsection