@extends('layouts.app') @section('title', 'Detail History') @section('content')

Detail History

Informasi lengkap treatment

Kembali

{{ $schedule->patient_name }}

{{ $schedule->patient_domicile }}

{{ $schedule->start_date->format('d/m/Y') }} - {{ $schedule->start_time }}

{{ ucfirst($schedule->treatment_type) }}

{{ $schedule->treatment->name }}

@if($schedule->day_label)

{{ $schedule->day_label }}

@endif
@if($schedule->addons->count() > 0)

Add-on Treatment

@foreach($schedule->addons as $addon)

{{ $addon->treatment->name }}

{{ $addon->start_date->format('d/m/Y') }}

{{ $addon->start_time }}

@endforeach
@endif @if($schedule->reimbursements->count() > 0)

Reimburse

@foreach($schedule->reimbursements as $reimburse)

{{ $reimburse->description }}

Rp {{ number_format($reimburse->amount, 0, ',', '.') }}

@if($reimburse->photos && $reimburse->photos->count() > 0) @php $photoPath = $reimburse->photos->first()->photo_path ?? null; $photoUrl = $photoPath ? route('media.show', ['path' => ltrim($photoPath, '/')]) : null; @endphp @if($photoUrl) Lihat Foto @else - @endif @else - @endif
@endforeach
@endif
@endsection