@if ($property == 'terkini')
LAPORAN STOK OBAT TERKINI
@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 |
Kode |
Nama |
Satuan |
Letak |
Stok |
Harga |
@forelse ($drugs as $drug)
| {{ $loop->iteration }} |
{{ $drug->code ?? '-' }} |
{{ $drug->name ?? '-' }} |
{{ $drug->unit ?? '-' }} |
{{ $drug->placement ?? '-' }} |
{{ $drug->latestStock() ?? '-' }} / {{ $drug->minimal ?? '-' }} |
{{ money_format_idr($drug->latestPrice()) ?? '-' }} |
@empty
@endforelse
@elseif ($property == 'kadaluarsa')
LAPORAN STOK OBAT KADALUARSA
@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 |
Kode |
Nama |
Satuan |
Letak |
Stok |
Harga |
@forelse ($drugs as $drug)
| {{ $loop->iteration }} |
{{ optional(optional($drug->drugStock)->entered_at)->format('d F Y') ?? '-' }} s.d {{ optional(optional($drug->drugStock)->expired_date)->format('d F Y') ?? '-' }} |
{{ $drug->code ?? '-' }} |
{{ $drug->name ?? '-' }} |
{{ $drug->unit ?? '-' }} |
{{ $drug->placement ?? '-' }} |
{{ $drug->latestStock() ?? '-' }} / {{ $drug->minimal ?? '-' }} |
{{ money_format_idr($drug->latestPrice()) ?? '-' }} |
@empty
@endforelse
@else
LAPORAN STOK MINIMAL 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
| No |
Kode |
Nama |
Satuan |
Letak |
Stok |
@forelse ($drugs as $drug)
| {{ $loop->iteration }} |
{{ $drug->code ?? '-' }} |
{{ $drug->name ?? '-' }} |
{{ $drug->unit ?? '-' }} |
{{ $drug->placement ?? '-' }} |
{{ $drug->minimal ?? '-' }} |
@empty
@endforelse
@endif