@extends('layouts.admin', ['title' => 'ویرایش جزئیات سفارشات']) @php $setting = App\Models\Setting::first(); $tax = $setting->tax; @endphp @section('content') @php $current_status = 0; @endphp

ویرایش جزئیات سفارش

@php $total = 0 @endphp
@php $num=1; @endphp @foreach(\DB::select('select * from tg_carts where id ='. $cid .' and status<>0',array()) as $item) @php $current_status = $item->status; $status_card=$item->status; @endphp @php $num++; @endphp @endforeach
ردیف شماره‌ پیگیری تاریخ جمع وضعیت
{{ $num }} DT-{{ $item->id }} @if($item->status== 6 || $item->status== 8 || $item->status== 0 ){{ GetShamsiDate($item->updated_at) }}@else{{ $item->paid_at != '0000-00-00 00:00:00' && $item->paid_at != '' ? GetShamsiDate($item->paid_at) : GetShamsiDate($item->updated_at) }}@endif @php $total = 0 ; @endphp @foreach(\DB::select('select *,(select title from products where id=tg_cart_items.product_id) as title,(select link from products where id=tg_cart_items.product_id) as link,(select tax from products where id=tg_cart_items.product_id) as tax from tg_cart_items where tg_cart_id = ' . $item->id,array()) as $item_p) @php $amount = $item_p->amount; $amount_num = $item_p->amount * $item_p->num ; if($item_p->tax == 0 && $item->status != 6 ){ $amount += $tax * $amount / 100; $amount_num += $tax * $amount_num / 100; } @endphp @php $total +=$amount_num ; //$item->paid @endphp @endforeach {{ number_format($total, 0, '', ',') }} تومان {{ $AdminTelegramOrdersController->getStatusTitle($item->status) }}
کالای جدید @foreach(\DB::select('select *,(select title from products where id=tg_cart_items.product_id) as title,(select link from products where id=tg_cart_items.product_id) as link,(select tax from products where id=tg_cart_items.product_id) as tax from tg_cart_items where tg_cart_id =' . $item->id,array()) as $item2) @php $amount = $item2->amount; $amount_num = $item2->amount * $item2->num ; if($item2->tax == 0 && $status_card != 6){ $amount += $tax * $amount / 100; $amount_num += $tax * $amount_num / 100; } @endphp @endforeach
شرح محصول تعداد قیمت واحد قیمت کل
{{ $item2->title }} {{ ($item2->color !="" ? " - " . $item2->color : "" ) }} {{ $item2->num }}{{ number_format( $amount, 0, '', ',') }} تومان {{ number_format($amount_num, 0, '', ',') }} تومان ویرایش حذف
نوع پرداخت روش ارسال هزینه ارسال:

تحویل گیرنده : آدرس:
کدپستی:
همراه:
کدملی:
نظام پزشکی:
کد اقتصادی:

شماره پیگیری :

تاریخ فاکتور :

عنوان فاکتور :
توضیحات فاکتور توضیحات برگه ارسال توضیحات فاکتور رسمی مخفی کردن اطلاعات از فاکتور رسمی
hidden_dcode == 1 ? 'checked="checked"' : '') }} value="1"> hidden_encnum == 1 ? 'checked="checked"' : '') }} value="1"> hidden_encregnum == 1 ? 'checked="checked"' : '') }} value="1"> hidden_nationalcode == 1 ? 'checked="checked"' : '') }} value="1"> hidden_phone == 1 ? 'checked="checked"' : '') }} value="1"> hidden_address == 1 ? 'checked="checked"' : '') }} value="1"> hidden_zipcode == 1 ? 'checked="checked"' : '') }} value="1"> hidden_pcode == 1 ? 'checked="checked"' : '') }} value="1">
بازگشت
@stop