@extends('website.layout.layout') @section('title') {{__("Shopping card")}} - @endsection @section('content') @if((count($pros) + count($qpros)) > 0)
سبد خرید
اطلاعات ارسال
اطلاعات پرداخت
@include('starter-kit::component.err')
@csrf
@php($tot = 0) @foreach ($pros as $pro) @endforeach @foreach ($qpros as $xkey => $qpro) @endforeach
{{__("Image")}} {{__("Name")}} {{__("Quantity")}} {{__("Price")}} {{__("Count")}} -
{{$pro->name}} @if($pro->quantities()->sum('count') > 0) @foreach($pro->quantities as $index => $q) @if($q->count > 0) @include('component.card-quantity',compact('q','pro','index')) @endif @endforeach @else @foreach(\App\Helpers\getPriceableMeta($pro) as $k => $meta)
{{\App\Helpers\getPropLabel($k)}} @if($k == 'color') {!! \App\Helpers\showMeta($k,$meta) !!} @else {!! \App\Helpers\showMeta($k,$meta) !!} @endif
@endforeach @endif
@if($pro->getPurePrice() == 0) {{__("We call you about price soon.")}} @else {{number_format($pro->getPurePrice())}} {{config('app.currency_type')}} @endif @php($tot = $tot + $pro->getPurePrice())
{{$pro->name}} @php($data = json_decode($qpro->data)) {{\App\Helpers\getColorName($data->color)}} {{$data->size}} @if($qpro->price == 0) {{__("We call you about price soon.")}} @else {{number_format($qpro->product->getPurePriceDef($qpro->price))}} {{config('app.currency_type')}} @endif @php($tot = $tot + $qpro->product->getPurePriceDef($qpro->price))
شما می‌توانید محصولات را رزرو کنید , برای اینکار به مرحله بعدی بروید و گزینه فعال سازی حالت رزرو را انتخاب کنید
@if(count($transports) > 0)
{{__("Transport method")}}
    @foreach($transports as $k=> $t)
  • is_default) checked @endif class="form-check-input transport"> @if(strlen($t->description) > 1)

    {{$t->description}} @if($t->price > 0) {{number_format($t->price)}} @else {{__("Free")}} @endif

    @endif
  • @endforeach @if(count($resevers) > 0) @foreach($resevers as $k=> $r)
  • @endforeach @endif
@endif
@if(auth('customer')->check() && auth('customer')->user()->colleague == 1)
اگر همکاری هستید آدرس مشتری را در این قسمت بنویسید
@endif
{{--
--}} {{-- {{__("Total amount")}}--}} {{--
--}} {{-- --}} {{-- {{number_format($tot)}}--}} {{-- --}} {{-- {{config('app.currency_type')}}--}} {{--
--}}
{{__("Check discount")}}
@if (!Auth::guard('customer')->check())
شما ثبت نام نکرده اید.
لطفا پیش از ادامه ثبت نام کنید یا وارد شوید
@endif
مبلغ قابل پرداخت
{{number_format($tot)}} {{config('app.currency_type')}}
 @if (Auth::guard('customer')->check()) خریدار: {{auth('customer')->user()->name}} - موبایل: {{auth('customer')->user()->mobile}}
{{__("choose addrress")}}:
@foreach(auth('customer')->user()->addresses as $ad)
@endforeach @if(strlen(auth('customer')->user()->address) < 10) تا زمانی که اطلاعات خود را تکمیل نکنید امکان ثبت سفارش ندارید
تکمیل اطلاعات @else

@endif   @else {{-- {{__("Register or login to complete purchase")}}--}}

برای ادامه لطفا ثبت نام / ورود کنید @endif
@if(auth('customer')->user()->colleague??null)
@endif
@else

سبد خرید شما خالی است

@endif @endsection