@extends('admin.layouts.app') @section('title') {{ $module_name }} @endsection @section('style') @endsection @section('content')

{{ $module_name }}

@if (session('errorMessage'))
{{ session('errorMessage') }}
@endif @if (session('successMessage'))
{{ session('successMessage') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)

{{ $error }}

@endforeach
@endif
@isset($customer)

{{ $customer->name }}

Tài khoản đặt hàng

    {{--
  • @lang('Total point earned'): {{ number_format($customer->total_score + $customer->total_payment) }}
  • @lang('Total money earned'): {{ number_format($customer->total_money + $customer->total_payment) }}
  • @lang('Total payment'): {{ number_format($customer->total_payment) }}
  • --}}
  • @lang('Total point available'): {{ number_format($customer->total_score) }}
  • @lang('Total money available'): {{ number_format($customer->total_money) }}
@endisset
@csrf @method('PUT')

@lang('Detail information'): @lang('Order number') #{{ $detail->id }}

{{ __('Created at') }}: {{ $detail->created_at }}

@foreach (App\Consts::ORDER_STATUS as $key => $value) @endforeach

Đơn này sẽ được đóng sau khi chuyển sang trạng thái @lang(App\Consts::ORDER_STATUS['processed'])

@if (isset($customer->total_money) && $detail->total_money <= $customer->total_money)
@foreach (App\Consts::PAYMENT_METHOD as $key => $value) @endforeach
@endif

@lang('Order product detail')

@foreach ($rows as $row) @php $url_mapping = App\Helpers::generateRoute(App\Consts::TAXONOMY['product'], $row->post_title, $row->item_id, 'detail', $row->taxonomy_title); @endphp @csrf @method('PUT') @endforeach
@lang('#') @lang('Product') @lang('Price') @lang('Quantity') @lang('Total') @lang('Action')
{{ $loop->index + 1 }} {{ $row->post_title }} {{ number_format($row->price * $row->quantity) }}
@endsection @section('script') @endsection