@extends('layouts.master') @section('title', $title) @section('content')
Doctor commission
Gets commission — only staff switched on earn anything. Outpatient % — of everything patients paid on the doctor's appointments (card, lab, imaging, services, operations, pharmacy of the visit). Admissions — one doctor per admission, on everything paid for it (room, lab, services, operations, delivery, pharmacy): if it had an operation, the operation doctor gets their Operation %; else if it had a delivery with a doctor, the delivery doctor gets their Delivery %; else the admitting doctor gets their Inpatient %. Operation % also applies to outside / outpatient operations. Leave operation / delivery empty to use the inpatient % for them. Refunds and discounts are not counted. Report: Report Center → Staff → Doctor commission.
@forelse ($doctors as $d) @php($m = $month[$d->id] ?? null) @empty @endforelse
StaffGets commissionOutpatient %Inpatient % Operation %Delivery % This month paid
out · in · operations · deliveries
Commission this month
{{ $d->name }}
{{ $d->job ?? '—' }}
gets_commission ? 'checked' : '' }}>
%
%
%
%
${{ number_format($m['out_amount'] ?? 0, 2) }} · ${{ number_format($m['in_amount'] ?? 0, 2) }} · ${{ number_format($m['op_amount'] ?? 0, 2) }} · ${{ number_format($m['del_amount'] ?? 0, 2) }} ${{ number_format($m['commission'] ?? 0, 2) }}
No active staff
@endsection @section('page_js') @endsection