@extends('web.layouts.layout') @section('content')
@include('web.layouts.header')

{{__('orders.id')}} : {{$order->id}}

{{__('orders.created_at')}} : {{$order->date}}

{{__('orders.status')}} : {{__('orders.'.$order->status)}}

{{__('orders.user_status_paid')}} : {{__('orders.'.$payment->user_status_paid)}}

{{__('orders.payment_status')}} : @if($order->user->role == 'company') {{__('web.credit_limit')}} @else {{__('orders.'.$payment->status)}} @endif @if($payment->status == 'bank') {{__('orders.payment_fatoorah')}} @endif

@if($payment->discount_status != 'non')

{{__('orders.discount_status')}} : {{$payment->discount_status == 'reminder' ? __('web.discount_reminder') : __('web.cobon') . ' ('.$payment->cobon->code.')'}}

@endif
@if(!isset($visitorsOnly)) @endif @foreach($products as $row) @if(!isset($visitorsOnly)) @endif @endforeach
{{__('web.product_image')}} {{__('web.product_name')}} {{__('web.product_code')}} {{__('web.quantity')}} {{__('web.cost')}} {{__('web.tax')}} {{__('web.total')}}
{{$row->product->currentDescription->name}} #{{$row->product->code}} {{$row->count}} {{$row->product_cost}} {{__('web.sar')}} {{$row->tax_cost}} {{__('web.sar')}} {{$row->total}} {{__('web.sar')}} @if($row->product->checkRate()) status == 'recieved') data-id="{{route('rating.product',$row->product_id)}}" onclick="rateProduct(this)" data-bs-toggle="modal" data-bs-target="#rateModal" @endif> {{__('web.rate')}} @else {{__('web.rated')}} @endif
  • {{__('web.total_products')}} {{$payment->total_products}} {{__('web.sar')}}
  • {{__('web.total_tax')}} {{$payment->tax_cost}} {{__('web.sar')}}
  • @if($payment->discount > 0)
  • {{__('web.discount_cobon')}} {{$payment->discount}} {{__('web.sar')}}
  • @endif @if($payment->shipping_cost > 0)
  • {{__('orders.total_shipping')}} {{$payment->shipping_cost}} {{__('web.sar')}}
  • @endif @if($payment->on_hand_cost > 0)
  • {{__('orders.delivery_val')}} {{$payment->on_hand_cost}} {{__('web.sar')}}
  • @endif
  • {{__('web.full_total')}} {{$payment->total}} {{__('web.sar')}}
@if($order->qr_image && is_file(public_path($order->qr_image)))
@endif
@if(!isset($visitorsOnly) && $order->status == 'recieved' && $order->rep_id && !$order->rep_is_rated) {{ __('orders.rep_evaluation') }} @endif @if(!isset($visitorsOnly) && in_array($order->status,$statuses)) {{__('web.order_cancel')}} @endif
@if(in_array($order->status,$statuses)) @endif @include('web.pages.components.modals.rate') @section('inject_js') @endsection @stop