@extends("backend.layouts2.master") @section("title") Invoice - Sistem Klinik @endsection @push('css') @endpush @section ('content')

Invoice

{{ App\Helpers\SettingHelper::setting('nama') }} Date: {{\Carbon\Carbon::parse($billing->created_at)->format("d/m/Y")}}

Dari
{{ App\Helpers\SettingHelper::setting('nama') }}
{{ App\Helpers\SettingHelper::setting('alamat') }}
No Telp.: {{ App\Helpers\SettingHelper::setting('no_hp') }}
Email: {{ App\Helpers\SettingHelper::setting('email') }}
Kepada
{{$billing->pasien->nama}}
{{$billing->pasien->alamat}}
WA: {{$billing->pasien->no_hp}}
Email: {{$billing->pasien->email}}
Invoice #{{$billing->id}}

Payment Due: {{\Carbon\Carbon::parse($billing->created_at)->addDays(7)->format("d/m/Y")}}
Payment Methods: @if ($billing->metode_pembayaran == 1) Cash
@elseif($billing->metode_pembayaran == 2) Transfer
@endif Status : @if ($billing->status == 1) @elseif($billing->status == 0) @endif
@if(count($billing->details)>0) @endif
# Item Sub Item Subtotal
1 Program {{$billing->register->program->nama}} Rp. {{number_format($billing->biaya_program, 2)}}
2 Layanan @foreach($billing->details as $value)
@endforeach
@foreach($billing->details as $value)

Rp. {{number_format($value->biaya, 2)}}

@endforeach
Subtotal: Rp. {{number_format($billing->biaya, 2)}}
Tax ({{$billing->pajak}}%): Rp. {{number_format(($billing->biaya*$billing->pajak)/100, 2)}}
Diskon: Rp. {{number_format($billing->diskon, 2)}}
Total: Rp. {{number_format($billing->total_biaya, 2)}}
@endsection @push('js') @endpush