@if ($property == 'klinik')
LAPORAN PENJUALAN OBAT KLINIK
@if ($this->filters['date-start'] && $this->filters['date-end'] != null)
{{ Carbon\Carbon::parse($this->filters['date-start'])->format('d F Y') }} s/d {{ Carbon\Carbon::parse($this->filters['date-end'])->format('d F Y') }}
@else
{{ $this->filters['date-start'] }} s/d {{ $this->filters['date-end'] }}
@endif
| No |
Tanggal |
Nomor Rekam Medis |
Pasien |
Obat |
Jumlah |
Total Transaksi |
@forelse ($drugBuys as $checkup)
| {{ $loop->iteration }} |
{{ $checkup->date->format('d F Y') ?? '-' }} |
{{ optional($checkup->patient)->medical_record_number ?? '-' }} |
{{ optional($checkup->patient)->name ?? '-' }} |
@foreach(json_decode($checkup->management->prescriptions) as $key => $prescription)
@if(optional($prescription)->type == 'racikan')
| {{$prescription->racikan}} |
- |
@if ($loop->first)
{{ money_format_idr($checkup->total) ?? '-'}} |
@endif
@else
| {{ optional($checkup->management->getDrug($prescription->obat))->name ?? '-' }} |
{{ isset($prescription->jumlah_ganti) ? $prescription->jumlah_ganti : ($prescription->jumlah ?? '-') }} |
@if ($loop->first)
{{ money_format_idr($checkup->total) ?? '-'}} |
@endif
@endif
@endforeach
@empty
@endforelse
@else
LAPORAN PENJUALAN OBAT UMUM
@if ($this->filters['date-start'] && $this->filters['date-end'] != null)
{{ Carbon\Carbon::parse($this->filters['date-start'])->format('d F Y') }} s/d {{ Carbon\Carbon::parse($this->filters['date-end'])->format('d F Y') }}
@else
{{ $this->filters['date-start'] }} s/d {{ $this->filters['date-end'] }}
@endif
| No |
Tanggal |
Nama |
Nomor Rekam Medis |
Nomor Ponsel |
Alamat |
Total Transaksi |
@forelse ($drugBuys as $drugBuy)
| {{ $loop->iteration }} |
{{ $drugBuy->date->format('d F Y') ?? '-' }} |
{{ $drugBuy->patient->name ?? $drugBuy->name ?? '-' }} |
{{ $drugBuy->patient->medical_record_number ?? '-' }} |
{{ $drugBuy->patient->phone_number ?? $drugBuy->phone_number ?? '-' }} |
{{ $drugBuy->patient->address ?? $drugBuy->address ?? '-' }} |
{{ money_format_idr($drugBuy->total_buy) ?? '-' }} |
@empty
@endforelse
@endif