@extends('admin::index') @section('content')

{{ $header or trans('admin.title') }} {{ $description or trans('admin.description') }}

@include('partials.error') @include('admin::partials.exception') @include('admin::partials.toastr') @if(Session::has('swal')) @endif {{-- MAIN CONTENT --}}
Đ/C: Chợ Minh Hưng, Minh Hưng, Chơn Thành, Bình Phước
ĐT: 0933.788.114 - 0972.788.114

Quầy sữa 78 - Mỹ phẩm 78
QUẦY THUỐC 78

Hoá đơn


Số HĐ: {{ $order->code }}
Ngày: {{ $order->created_at->format('d-m-Y H:i') }}
@if($order->customer) Khách: {{ $order->customer->fullname }}
SĐT: {{ $order->customer->phone }}
Điểm thưởng hiện tại: {{ number_format($order->customer->points, 1) }}
@endif

@foreach($order->products as $item) @php $unitLabel = $item->pivot->unit_id ? (\App\Models\Unit::find($item->pivot->unit_id)->name ?? '') : $item->unit; @endphp @endforeach
SLĐGThành tiền
{{ $item->name }}@if($unitLabel) ({{ $unitLabel }})@endif
{{ $item->pivot->qty }} {{ number_format($item->pivot->price,0) }} {{ number_format($item->pivot->qty * $item->pivot->price,0) }}
Tiền giảm: - {{ number_format($order->discount_amount,0) }}
Tổng cộng: {{ number_format($order->total,0) }}


Tài khoản: Nguyen Hoang Dao
ACB : 7257807
Sacombank : 0933788114


@if(request('ref') === 'orders') Trở lại @else Tạo đơn mới @endif
@endsection @push('styles') {{-- cannot use in pjax--}} @endpush @push('scripts') {{-- cannot use in pjax--}} @endpush