@extends('frontend.layouts.master') @section('class-body') @endsection @section('content')

ĐƠN HÀNG BÁN
Tên khách hàng:  {{session('info-temp')->full_name}} Người xử lý: 
Địa chỉ email:  {{session('info-temp')->email}} Ngày xử lý: 
Điện thoại: {{session('info-temp')->phone}} Phương thức thanh toán:
Ngày thanh toán: {{$order->payment_date}}  
@foreach($arrLectureCart as $key=> $item) @endforeach
STT Mã khóa học Tên khóa học Đơn giá VAT (%) CK (%) CK (đ) Thành tiền
{{$key+1}} {{$item->lecture->id}} {{$item->lecture->title}} {{number_format($item->lecture->price)}} 0 0 0 {{number_format($item->lecture->price)}}
Tổng {{number_format(\App\Helpers\Functions::totalPrice($arrLectureCart))}}
Chiết khấu trước thuế % 0
Thuế VAT %
Tổng cộng {{number_format(\App\Helpers\Functions::totalPrice($arrLectureCart))}}
{{--
--}} {{--
--}} {{----}} {{--Điều khoản đi kèm--}} {{----}} {{--
--}} {{--
--}} {{--
1.:
--}} {{--
2.:
--}} {{--
--}} {{--
--}}

Thanh toán ({{$order->status == \App\Constants\OrderConstant::DA_THANH_TOAN ? 'Đã thanh toán' : 'Đang chờ xử lý'}})

Đã thanh toán: {{$order->status == \App\Constants\OrderConstant::DA_THANH_TOAN ? number_format($order->total_price) : ''}}
Còn lại: 0

Lịch sử thanh toán

@foreach($historyOrder as $item) @endforeach
Ngày Số tiền Ghi chú
{{date('d-m-Y', strtotime($item->payment_date))}} {{number_format($item->price)}} {{$item->description}}
@endsection