@extends('layouts.landing-page') @section('content')
Logo

Invoice Order

#{{ $order->order_no }}

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

Detail Pembeli

Nama: {{ $order->user->name }}

Email: {{ $order->user->email }}

Telp: {{ '+'.$order->user->phone }}

Alamat: {{ ($order->user->profile) ? $order->user->profile->address : '' }}

@php $textColor = 'text-red-500'; @endphp @if ($order->payment_status == 'paid') @php $textColor = 'text-green-400'; @endphp @endif

Status : {{ strtoupper($order->payment_status) }}

Rincian Order

@php $subtotal = 0; @endphp @foreach ($order->orderItem as $row) @php $subtotal = 0; @endphp @if ($row->songLicense->payment_type == 'Beli Harga') @else @endif @endforeach
Uraian Qty Harga/Nilai
@php $license_type = $row->songLicense->license_type; $time_amount = $row->songLicense->time_amount; $time_type = $row->songLicense->time_type; @endphp {{ 'Lisensi ' . $row->songLicense->license_type . ' (' . $row->songLicense->zone . ')' }}
{{ $row->songLicense->song->title }}
{{ 'Cipt. ' . $row->songLicense->song->songContributors->pluck('user.name')->implode(', ') }}
1Rp. {{ number_format($row->songLicense->amount) }} {{ number_format($row->songLicense->amount) }} %
@php $subtotal = $row->songLicense->amount; $ppn = $subtotal * ($ppnAmount / 100); if ($row->songLicense->payment_type != 'Beli Harga') { $ppn = 0; } $total = $subtotal + $ppn; @endphp
Subtotal Rp{{ number_format($subtotal, 0, ',', '.') }}
@if ($row->songLicense->payment_type == 'Beli Harga')
PPN ({{ $ppnAmount }}%) Rp{{ number_format($ppn, 0, ',', '.') }}
Total Rp. {{ number_format($total, 0, ',', '.') }}
{{--
Terbilang {{ terbilang_rupiah($total) }}
--}} @else
Total {{ number_format($total, 0, ',', '.') }} %
@endif
{{--
Total @if ($row->songLicense->payment_type == 'Beli Harga') Rp. {{ number_format($row->songLicense->amount) }} @else {{ number_format($row->songLicense->amount) }} % @endif
--}} @if ($row->songLicense->payment_type == 'Beli Harga') @if (!in_array($order->payment_status, ['paid', 'failed']))

Metode Pembayaran : {{ $order->payment_method }}

Silakan transfer ke rekening berikut:

Bank: {{ $bank_name }}

No Rek: {{ $bank_acc_number }}

An: {{ $bank_acc_name }}

Sejumlah : Rp. {{ number_format($total, 0, ',', '.') }}

Terbilang : {{ terbilang_rupiah($total) }}

@endif @endif
@endsection @push('style') @endpush @section('scripts') @endsection