@extends('layout.app') @section('_style') @endsection @section('content')
Quay lại

Thanh toán / Hóa đơn

@if($order->the_rest <= 0) Đã thanh toán @else Còn nợ {{ number_format($order->the_rest) }} @endif
Hóa đơn dịch vụ
{{ @$order->customer->full_name }} @if(@$order->customer->account_code) {{ $order->customer->account_code }} @endif
{{ @str_limit($order->customer->phone,7,'xxx') }} @if(@$order->customer->address) {{ $order->customer->address }} @endif
Mã hóa đơn{{ @$order->code }}
Ngày tạo{{ date('d-m-Y', strtotime($order->created_at)) }}
Người lên đơn{{ @$order->owner->full_name }}
Chi nhánh{{ @$order->branch->name }}
Hình thức thanh toán{{ @$order->name_payment_type }}
@if($order->hsd)
Ngày hết hạn{{ date('d-m-Y', strtotime($order->hsd)) }}
@endif
@foreach($order->orderDetails as $key => $orderDetail) @endforeach
# Sản phẩm | Dịch vụ SL | Số buổi Đơn giá VAT (%) CK (%) CK (đ) Thành tiền
{{ $key + 1 }} {{ @$orderDetail->service->name }} {{@$orderDetail->quantity>0 ? $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) }}
Chiết khấu{{ number_format($order->discount_order) }}
Tổng cộng{{ number_format($order->all_total) }}
Đơn hàng / Thanh toán
@if($order->the_rest <= 0)
Đã thanh toán thành công

Cảm ơn bạn đã tin tưởng và sử dụng dịch vụ của chúng tôi!

@else
Chờ thanh toán

Đơn hàng còn lại {{ number_format($order->the_rest) }} chưa thu.

@endif
  • Doanh số {{ 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') @include('gifts._form') @include('customers.modal_update_history_order') @endsection @section('_script') @endsection