@extends('layout.app') @section('title') {{ __('بيانات الزبون') }} @stop @section('content')

{{ __('بيانات الزبون') }}

{{-- client name --}}

{{ __('Client Name') }}

{{-- end client name --}} {{-- client URL --}}

{{ __('Client Email') }}

{{-- end client URL --}} {{-- client URL --}}

{{ __('Client Phone') }}

{{-- end client URL --}} {{-- client URL --}}

{{ __('اسم الشركة') }}

{{-- end client URL --}} {{-- client URL --}}

{{ __('Client Message') }}

{{-- end client URL --}}

{{ __('تفاصيل الطلب') }}

@foreach ($order->products as $product) @php $price = 0; foreach($order->products as $product) { if($product->pivot->price ?? false) { $price += ($product->pivot->price * $product->pivot->quentity); } } @endphp @endforeach
{{ __('Product Image') }} {{ __('Product') }} {{ __('Quentity') }} {{ __('Price') }} {{ __('Total Price') }}
@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $product->name_ar }} @else {{ $product->name_en }} @endif {{ $product->pivot->quentity }} {{ $product->pivot->price ?? __('no price for this product') }} {{ $price }}
@php $total_price = 0; @endphp @foreach ($order->products as $product) @php foreach($order->products as $product) { if($product->pivot->price ?? false) { $total_price += ($product->pivot->price * $product->pivot->quentity); } } @endphp @endforeach

{{ __('Total Price: ') }}

{{ $total_price }}
@endsection