Apotek Apotek Laporan Pendapatan Cetak
@if ($property == 'tahun')
@elseif ($property == 'bulan')
@else
@endif

LAPORAN PENDAPATAN APOTEK

@if($property == 'tahun') {{ Carbon\Carbon::parse($this->filters['year'])->format('Y') }} @elseif($property == 'bulan') {{ Carbon\Carbon::parse($this->filters['month'])->format('F Y') }} @else @if($filters['date-start'] == $filters['date-end']) {{ Carbon\Carbon::parse($this->filters['date-start'])->format('d F Y') }} @else {{ Carbon\Carbon::parse($this->filters['date-start'])->format('d F Y') }} s/d {{ Carbon\Carbon::parse($this->filters['date-end'])->format('d F Y') }} @endif @endif

@php $total = 0 @endphp @forelse ($patients as $pharmacy) @php $count = (int) count(json_decode($pharmacy->drug,1)); $count == 0 ? $count = 1 : $count = $count; $array = json_decode($pharmacy->drug,1); @endphp
@if(isset($array[0])) @if(optional($array[0])['type'] == 'racikan') @else @endif @endif @php $total += (int) $pharmacy->total_payment @endphp @foreach ($array as $item) @if(!$loop->first) @if(optional($item)['type'] == 'racikan') @else @endif @endif @endforeach @empty @endforelse
No Tanggal Registrasi Rekam Medis Nama Pasien Nomor Ponsel Alamat Obat Jumlah Total
{{ $loop->iteration }} {{ optional($pharmacy->date)->format('d/m/Y') ?? '-' }} {{ $pharmacy->patient->medical_record_number ?? '-' }} {{ $pharmacy->patient->name ?? '-' }} {{ $pharmacy->patient->phone_number ?? '-' }} {{ $pharmacy->patient->address ?? '-' }}{{$array[0]['racikan']}} -{{ optional($pharmacy->getDrug($array[0]['obat']))->name ?? '-'}} {{ $array[0]['jumlah'] ?? '-'}}{{ money_format_idr($pharmacy->total_payment ?? '0') }}
{{$item['racikan']}} -
{{ optional($pharmacy->getDrug($item['obat']))->name ?? '-'}} {{ $item['jumlah'] ?? '-'}}
Total :
{{ money_format_idr($total) }}
@push('styles') @endpush @push('scripts') @endpush