@extends('layouts.app') @section('content')

Tindakan

@php $urlStatus = app(\App\Services\OrderServices::class)::getPaymentStatusRoute( $order->id, ); @endphp Lihat Status @if ($order->payment_status != 'paid' && $order->payment_status != 'failed') Konfirmasi Bayar @endif

No. # {{ $order->order_no }}

@if ($order->payment_status == 'paid') {{ $order->payment_status }} @else {{ $order->payment_status }} @endif

Pelanggan

{{ $order->user->name ?? '' }}
{{ '+' . $order->user->phone ?? '' }}
{{ optional($order->user->profile)->address ?? '' }}
{{ $order->user->email ?? '' }}

Tanggal Order

{{ $order->created_at->format('d M Y') }}
{{ $order->created_at->format('H:i') }}

Item Pesanan

@forelse ($order->orderItem as $row) @php $payment_type = optional($row->songLicense)->payment_type; $time_amount = $row->time_amount != 0 ? $row->time_amount : ''; $time_type = $row->time_type != null ? $row->time_type : ''; $cover = app(\App\Services\SongServices::class)->getCoverImageS3( $row->songLicense->song, 'sm', ); @endphp @empty @endforelse @php $subtotal = $row->songLicense->amount; $ppn = $subtotal * ($ppnAmount / 100); if ($row->songLicense->payment_type != 'Beli Harga') { $ppn = 0; } $total = $subtotal + $ppn; @endphp
Uraian Qty Harga Subtotal
{{ optional($row->songLicense)->license_type . ' ' . $time_amount . ' ' . $time_type }}
{{ optional($row->songLicense->song)->title }}
{{ optional($row->songLicense->song)->title }}
@php $composerNames = $row->songLicense->song->songContributors ->filter(function ($contributor) { return $contributor->role === 'Composer'; }) ->pluck('user.name') ->implode(', '); @endphp {{ 'Cipt. ' . $composerNames }}
1 @if ($payment_type == 'Beli Harga') {{ 'Rp.' . number_format($row->price) }} @endif @if ($payment_type == 'Beli Harga') {{ 'Rp.' . number_format($row->price) }} @endif
belum ada data
PPN ({{ $ppnAmount ?? '10' }}%) Rp{{ number_format($ppn, 0, ',', '.') }}
Total Rp. {{ number_format($total, 0, ',', '.') }}
Metode Pembayaran : {{ $order->payment_method_name }}
@if ($order->payment_method_name == 'MANUAL')
Transfer ke rekening
Bank: {{ $bank_name }}
No Rek: {{ $bank_acc_number }}
An: {{ $bank_acc_name }}
Sejumlah : Rp. {{ number_format($total, 0, ',', '.') }}
Terbilang : {{ terbilang_rupiah($total) }}
@endif

Konfirmasi Pembayaran

@php $imgConfirm = app('App\Services\PaymentServices')->getConfirmImageLocal($order, 'md'); @endphp
Tanggal
{{ $order->confirm_date ? $order->confirm_date->format('d M Y H:i:s') : '-' }}
Pesan
{!! nl2br($order->confirm_message) !!}
Bukti Bayar

Riwayat Transaksi

@forelse ($order->orderHistory as $row)
{{ $row->created_at->format('d M Y H:i') }}
{{ $row->status }}
@empty

Belum ada riwayat order.

@endforelse

Informasi Pembayaran

Status
{{ ': ' . strtoupper($order->payment_status) }}
Metode
{{ ': ' . $order->payment_method_name }}
Tanggal Pembayaran
{{ ': ' . optional($order->payment_date)->format('d M Y H:i:s') ?? '' }}
Jumlah Pembayaran
: {{ $order->payment_amount > 0 ? 'Rp.' . number_format($order->payment_amount) : '0.00' }}
Referensi
{{ ': ' . $order->payment_ref }}
Pesan
{{ ': ' . $order->payment_message }}
@endsection @push('styles') @endpush @section('scripts') @endsection