@extends('layout.app') @section('_style') @endsection @section('content')
ĐƠN HÀNG BÁN
Tên khách hàng:  {{ @$order->customer->full_name }} Người thực hiện: {{ @$order->customer->marketing->full_name }}
Địa chỉ: {{ @$order->customer->address }} Phòng ban: 
Điện thoại: {{ @$order->customer->phone }} - Ngày tạo đơn:  {{ date('d-m-Y', strtotime($order->created_at)) }}  @if($order->hsd) Ngày hết hạn:  {{ date('d-m-Y', strtotime($order->hsd)) }} @endif
Người nhận: {{ @$order->customer->full_name }} - Điện thoại: {{ @$order->customer->phone }} Phương thức thanh toán: {{@$order->name_payment_type}}
@foreach($order->orderDetails as $key => $orderDetail) @endforeach
STT Mã Sản phẩm|Dịch vụ Đơn vị tính Số lượng|Số buổi Đơn giá VAT (%) CK (%) CK (đ) Thành tiền
{{ $key + 1 }} {{ @$orderDetail->service->name }} {{$order->role_type==2? $orderDetail->quantity:$orderDetail->days }} {{ number_format(@$orderDetail->price) }} {{ $orderDetail->vat }} {{ $orderDetail->percent_discount }} {{ number_format($orderDetail->number_discount) }} {{ number_format($orderDetail->total_price) }}
Khuyến mại (voucher) {{ number_format($order->discount) }}
Tổng cộng {{ number_format($order->all_total) }}
{{--
--}} {{--
--}} {{----}} {{--Điều khoản đi kèm--}} {{----}} {{--
--}} {{--
--}} {{--
1. Thời gian giao hàng:
--}} {{--
2. Địa điểm giao hàng:
--}} {{--
--}} {{--
--}}

Thanh toán

{{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}}
Doanh số: {{ number_format($order->all_total) }}
Đã thanh toán: {{ number_format($order->gross_revenue) }}
Thực tế phải thanh toán:{{ number_format($order->all_total) }}
Khuyến mại (voucher): {{ number_format($order->discount) }}
Chiết khấu : {{ number_format($order->discount_order) }}
Đã thanh toán:{{ number_format($order->gross_revenue) }}
Còn lại: {{ number_format($order->the_rest) }}
@include('order.payment-history')
@include('order.modal') @endsection @section('_script') @endsection