@extends('web.layouts.main') @section('content') @include('web.pages.components.headerNav') {{__('web.products')}} ({{$count}}) @CSRF @if($count > 0) {{__('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')}} @foreach($carts as $key=>$row) {{$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 @endforeach {{__('web.total_cart')}} {{$total}} {{__('web.sar')}} {{__('web.finish_order')}} @else {{__('web.not_cart')}} @endif
{{$row->product->code}}
{{$row->product->category->descriptions()->name}}
{{$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
{{__('web.total_cart')}}