@php $shop_address = Setting::getShopFullAddress(); $service_shipping = Shipping::getAllShipping(); if(!empty($order->tax)) { $tax = ($order->tax/100) * $order->total; $order->total = $order->total + $tax; } $coupon = $order->coupon?json_decode($order->coupon, true):[]; @endphp @extends('core::layouts.master') @section('breadcrumb') Quản lý đơn hàng / Chi tiết đơn hàng @endsection @section('head-action')
Sản phẩm | SL | Giá | Thành tiền | |
---|---|---|---|---|
{{$loop->iteration}} |
@if($item->product_option && is_array($item->product_option) && count($item->product_option))
@foreach($item->product_option as $option)
{{@$option['parent_name']}}
: {{@$option['name']}}{{($loop->last)?'':','}}
@endforeach
@endif
@if($item->product_code)
Mã SP: {{ $item->product_code }}
@endif
|
{{$item->quantity}} | {{number_format($item->price)}} {{$order->currency}} | {{number_format($item->subtotal)}} {{$order->currency}} |
Thành tiền | {{number_format($subtotal)}} {{$order->currency}} | |||
@if(!empty($order->shipping_fee)) Phí Ship @else Thêm phí ship @endif | {{number_format($order->shipping_fee)}} {{$order->currency}} | |||
@foreach($coupon as $key => $value)
@if($key != 'admin_discounts')
Mã giảm giá {{$value['code']}} @if($value['type'] == 'percent_bill') (giảm % trên tổng hóa đơn) @elseif($value['type'] == 'free_shipping') (giảm phí vận chuyển) @else (giảm tiền trên tổng hóa đơn) @endif @else @foreach($value as $index => $val) @endforeach @endif @endforeach |
@foreach($coupon as $key => $value)
@if($key != 'admin_discounts')
- @if($value['type'] == 'percent_bill') {{$value['value']}}% @elseif($value['type'] == 'free_shipping') {{number_format($value['value'])}} {{$order->currency}}chuyển @else {{number_format($value['value'])}} {{$order->currency}} @endif @else @foreach($value as $val)-{{number_format($val['value'])}} {{$order->currency}} @endforeach @endif @endforeach |
|||
@if(!empty($order->tax)) Thuế GTGT ({{$order->tax}}%) @else Thêm thuế GTGT @endif | @if(!empty($order->tax)) {{number_format($tax)}} {{$order->currency}} @endif | |||
Tổng cộng | {{number_format($order->total+$order->shipping_fee)}} {{$order->currency}} |
Họ tên | {{$order->user->fullname}} |
---|---|
Điện thoại | {{$order->user->phone}} |
{{$order->user->email}} | |
Địa chỉ | @if(!empty($order->user->address)) {{$order->user->address . ', ' . $order->user->district . ', ' . $order->user->province}} @endif |
Họ tên | {{$order->fullname}} |
---|---|
Điện thoại | {{$order->phone}} |
{{$order->email}} | |
Địa chỉ | @if(!empty($order->address)) {{$order->address . ', ' . $order->district . ', ' . $order->province}} | @endif
Ghi chú | {{$order->note}} |
Tên: {{$admin->name}}
Email: {{$admin->email}}