| No Resep | Tanggal | Type | Obat | Jumlah | Dosis | Harga | Total | Total Transaksi | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @if($buys->type == 'RD') {{$buys->prescription_number}} @else {{$buys->prescription_number}} @endif | {{$buys->created_at->format('d/m/Y')}} | {{$buys->type}} | @forelse($drugs as $key => $drug) @if(optional($drug)->type == 'racikan') @if($loop->first){{$drug->racikan}} | - | - | - | {{money_format_idr($drug->harga)}} | @endif @if(!isset($drug->not_selected)) @php($total += $drug->harga) @endif @else @if($loop->first){{optional($this->getObat($drug->obat))->name ?? '-'}} | {{(isset($drug->jumlah_ganti) ? $drug->jumlah_ganti : $drug->jumlah)}} | {{ optional($drug)->dosis }} | {{money_format_idr(optional($this->getObat($drug->obat))->latestPrice())}} | {{money_format_idr(optional($this->getObat($drug->obat))->latestPrice() * (isset($drug->jumlah_ganti) ? $drug->jumlah_ganti : $drug->jumlah))}} | @endif @if(!isset($drug->not_selected)) @php($total += optional($this->getObat($drug->obat))->latestPrice() * (isset($drug->jumlah_ganti) ? $drug->jumlah_ganti : $drug->jumlah)) @endif @endif @empty- | - | - | - | @endforelse @php($total_semua += $total){{money_format_idr($total)}} |
| {{$drug->racikan}} | - | - | - | {{money_format_idr($drug->harga)}} | |||||||||||||
| {{optional($this->getObat($drug->obat))->name ?? '-'}} | {{(isset($drug->jumlah_ganti) ? $drug->jumlah_ganti : $drug->jumlah)}} | {{ optional($drug)->dosis }} | {{money_format_idr(optional($this->getObat($drug->obat))->latestPrice())}} | {{money_format_idr(optional($this->getObat($drug->obat))->latestPrice() * (isset($drug->jumlah_ganti) ? $drug->jumlah_ganti : $drug->jumlah))}} | |||||||||||||
| @if($buys->type == 'RD') {{$buys->prescription_number}} @else {{$buys->prescription_number}} @endif | {{$buys->created_at->format('d/m/Y')}} | {{$buys->type}} | - | - | - | - | - | - | |||||||||
| Total | {{money_format_idr($total_semua)}} | ||||||||||||||||