@extends('layouts.admin') @section('content')
Kembali ke Daftar Booking Unduh PDF
{{-- Header --}}
Email: ceriadiego@gmail.com
Phone Number: +62 822-2095-5595
{{-- Info Section --}}

Dear

Nama : {{ $consultationBooking->receiver_name ?? 'N/A' }}

{{-- Menampilkan info layanan dan tanggal booking --}} @foreach($consultationBooking->services as $service) @if($service->pivot->session_type == 'Offline')

Alamat Offline: {{ $service->pivot->offline_address }}

@endif

Waktu Konseling: {{ \Carbon\Carbon::parse($service->pivot->booked_date)->format('d F Y') }}

Paket Konseling: {{ $service->title }}

@endforeach

No Hp : {{ optional($consultationBooking->user)->phone_number ?? 'N/A' }}

Invoice Details

Invoice No : {{ optional($consultationBooking->invoice)->invoice_no ?? 'N/A' }}

Invoice Date : {{ optional($consultationBooking->invoice)?->invoice_date?->format('d/F/Y') ?? 'N/A' }}

Due Date : {{ optional($consultationBooking->invoice)?->due_date?->format('d/F/Y') ?? 'N/A' }}

Status : {{ ucfirst(optional($consultationBooking->invoice)?->payment_status ?? 'N/A') }}

Session : {{ ucfirst($consultationBooking->session_status ?? 'N/A') }}

Payment Type : {{ $consultationBooking->payment_type ?? 'N/A' }}

{{-- Service Table --}} @php $subtotal = 0; $totalDiscount = 0; @endphp @foreach($consultationBooking->services as $service) @php $basePrice = $service->price; $hourlyPrice = $service->hourly_price; $hoursBooked = $service->pivot->hours_booked; $totalPrice = $basePrice + ($hourlyPrice * $hoursBooked); $discountAmount = $service->pivot->discount_amount_at_booking; $subtotal += $totalPrice; $totalDiscount += $discountAmount; @endphp @if($discountAmount > 0) @endif @endforeach
Service Description Quantity Unit Price Amount Total Line
{{ $service->title }}
@if($hoursBooked > 0) {{ $hoursBooked }} Hours - add @endif
1 Rp {{ number_format($basePrice, 0, ',', '.') }} @if($hoursBooked > 0)
Rp {{ number_format($hourlyPrice, 0, ',', '.') }} @endif
- Rp {{ number_format($basePrice, 0, ',', '.') }} @if($hoursBooked > 0)
Rp {{ number_format($hourlyPrice * $hoursBooked, 0, ',', '.') }} @endif
Discount 1 - Rp {{ number_format($discountAmount, 0, ',', '.') }} -Rp {{ number_format($discountAmount, 0, ',', '.') }}
{{-- Summary --}}

Sub-Total: Rp {{ number_format($subtotal, 0, ',', '.') }}

Total Discount Item: -Rp {{ number_format($totalDiscount, 0, ',', '.') }}

Total Invoice Rp {{ number_format($consultationBooking->final_price, 0, ',', '.') }}
{{-- Signature --}}

Regards,

Muhammad Ikhsan Haekal

Indiegologi Team

{{-- Payment Info --}}

Payment Information

Bank SMBC Indonesia - 90110023186

Name: Artwira Mahatavirya Satyagasty

Please Transfer Payment to the Account above before the due date,

And Please Confirm to the following number: 0822 2095 5595

@endsection