@extends('web.layouts.main') @section('content')
@include('web.pages.components.headerNav')

{{__('web.products')}} ({{$count}})

@CSRF @if($count > 0)
@foreach($carts as $key=>$row) @endforeach
{{__('web.product_image')}} {{__('web.product_name')}} {{__('web.product_code')}} {{__('web.category')}} {{__('web.quantity')}} {{__('web.total_amount')}} {{__('web.cost_after_discount')}} {{__('web.discount')}} {{__('web.note')}} {{__('web.remove')}}
{{$row->product->descriptions()->name}}

{{$row->product->code}}

{{$row->product->category->descriptions()->name}}

{{$row->count}}

{{$row->product->costCheck() * $row->count}} {{__('web.sar')}}

@if($row->product->type == 'none') - @else {{$row->product->costCheck()}} {{__('web.sar')}} @endif

@if($row->product->type == 'none') - @else @if($row->product->type == 'value') {{$row->product->getDiscount()}} {{__('web.sar')}} @else {{$row->product->getDiscount()}}% @endif @endif

@else @endif
@push('js') @endpush @stop