{{ trans('staff.table.title.clients') }}
{{ trans('staff.table.header.number') }} | {{ trans('staff.table.header.name') }} | {{ trans('staff.table.header.email') }} | {{ trans('staff.table.header.policies') }} | {{ trans('staff.table.header.due') }} | {{ trans('staff.table.header.action') }} |
---|---|---|---|---|---|
{{ $key + 1 }} | {{ $client->first_name . ' ' . $client->last_name }} | {{ $client->email }} |
{{ $client->policies->count() }}
|
{{ $staff->currency_symbol }}{{ $client->policies->sum('premium') - $client->payments->sum('amount') }} | {{ trans('staff.table.data.action.view') }} |
{{ trans('staff.table.message.empty.clients', array('name' => $staff->first_name)) }} |
{{ trans('staff.table.title.policies') }}
{{ trans('staff.table.header.ref_no') }} | {{ trans('staff.table.header.product') }} | {{ trans('staff.table.header.premium') }} | {{ trans('staff.table.header.commission') }} ({{ $staff->commission_rate + 0 }}%) | {{ trans('staff.table.header.status') }} | {{ trans('staff.table.header.action') }} |
---|---|---|---|---|---|
{{ $policy->ref_no }} | {{ $policy->product->name }} | {{ $staff->currency_symbol}}{{ $policy->premium }} | {{ $staff->currency_symbol}}{{ $policy->premium * $staff->commission_rate / 100 }} |
@if ($policy->premium <= $policy->paid && $policy->paid > 0)
{{ trans('staff.table.data.status.paid') }}
@elseif ($policy->premium > $policy->paid && $policy->paid > 0)
{{ trans('staff.table.data.status.partial') }}
@elseif ($policy->premium == $policy->paid && $policy->paid === 0)
{{ trans('staff.table.data.status.free') }}
@else ($policy->premium > 0 && $policy->paid === 0)
{{ trans('staff.table.data.status.unpaid') }}
@endif
|
{{ trans('staff.table.data.action.view') }} |
{{ trans('staff.table.message.empty.policies', array('name' => $staff->first_name)) }} | |||||
{{ trans('staff.table.header.total') }} | {{ $staff->currency_symbol }}{{ $policies->sum('premium') }} | {{ $staff->currency_symbol }}{{ $policies->sum('premium') * $staff->commission_rate / 100 }} |