Resep Obat Resep Obat Laporan Farmasi Cetak @if($mode === false)

LAPORAN RESEP OBAT

@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

@php($total_semua = 0) @forelse ($DataItems as $drugKey => $buys) @php($drugs = (array) json_decode($buys->drug)) @php($total = 0) @if(count($drugs) > 0)
@forelse($drugs as $key => $drug) @if(optional($drug)->type == 'racikan') @if($loop->first) @endif @if(!isset($drug->not_selected)) @php($total += $drug->harga) @endif @else @if($loop->first) @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) @foreach($drugs as $key => $drug) @if(optional($drug)->type == 'racikan') @if(!$loop->first) @endif @else @if(!$loop->first) @endif @endif @endforeach @else @endif @empty @endforelse
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}}{{$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))}}- - - -{{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)}}
@else @endif
@push('styles') @endpush