Pembelian Obat Pembelian Obat Laporan Apotik Cetak
@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

@forelse ($drugBuys as $checkup) @foreach(json_decode($checkup->management->prescriptions) as $key => $prescription) @if(optional($prescription)->type == 'racikan') @if ($loop->first) @endif @else @if ($loop->first) @endif @endif @endforeach @empty @endforelse
No Tanggal Nomor Rekam Medis Pasien Obat Jumlah Total Transaksi
{{ $loop->iteration }} {{ $checkup->date->format('d F Y') ?? '-' }} {{ optional($checkup->patient)->medical_record_number ?? '-' }} {{ optional($checkup->patient)->name ?? '-' }}
{{$prescription->racikan}} -{{ money_format_idr($checkup->total) ?? '-'}}
{{ optional($checkup->management->getDrug($prescription->obat))->name ?? '-' }} {{ isset($prescription->jumlah_ganti) ? $prescription->jumlah_ganti : ($prescription->jumlah ?? '-') }}{{ money_format_idr($checkup->total) ?? '-'}}
@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

@forelse ($drugBuys as $drugBuy) @empty @endforelse
No Tanggal Nama Nomor Rekam Medis Nomor Ponsel Alamat Total Transaksi
{{ $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) ?? '-' }}
@endif
@push('styles') @endpush