@extends('layouts.admin', ['title' => 'فهرست سفارشات ناقص']) @section('content') @if($mode == 'list')
| ردیف | شماره پیگیری | تاریخ | نام | شماره همراه | جمع | وضعیت | |||
|---|---|---|---|---|---|---|---|---|---|
| {{ $num }} | DT-{{ $item->id }} | {{ GetShamsiDate($item->created_at) }} | @if(isset($search)){{ $item->flname }} | {{ $item->mobile }} | @else{{ $item->User->flname }} | {{ $item->User->mobile }} | @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 ){ // $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) }} | مشاهده |
| ردیف | شماره پیگیری | تاریخ | جمع | وضعیت | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $num }} | DT-{{ $item->id }} | @if($item->status== 6){{ GetShamsiDate($item->created_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 ){ // $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) }} | ||||||||||||||||
|
||||||||||||||||||||