@extends('templates.dashboard') @section('content') @parent @include('global.status')
{{ trans('dashboard.table.header.number') }} | {{ trans('dashboard.table.header.ref_no') }} | {{ trans('dashboard.table.header.client') }} | {{ trans('dashboard.table.header.product') }} | {{ trans('dashboard.table.header.insurer') }} | {{ trans('dashboard.table.header.premium') }} | {{ trans('dashboard.table.header.due') }} | {{ trans('dashboard.table.header.status') }} | {{ trans('dashboard.table.header.action') }} |
---|---|---|---|---|---|---|---|---|
{{ $policy->id }} | {{ $policy->ref_no }} | {{ $policy->payer }} | {{ $policy->product->name }} | {{ $policy->product->insurer }} | {{ $company->currency_symbol }}{{ $policy->premium + 0 }} | {{ $company->currency_symbol }}{{ $policy->premium - $policy->payments->sum('amount') }} |
@if ($policy->premium <= $policy->paid && $policy->paid > 0)
{{ trans('dashboard.table.data.status.paid') }}
@elseif ($policy->premium > $policy->paid && $policy->paid > 0)
{{ trans('dashboard.table.data.status.partial') }}
@elseif ($policy->premium == $policy->paid && $policy->paid === 0)
{{ trans('dashboard.table.data.status.free') }}
@else ($policy->premium > $policy->paid && $policy->paid === 0)
{{ trans('dashboard.table.data.status.unpaid') }}
@endif
|
{{ trans('dashboard.table.data.action') }} |
{{ trans('dashboard.table.data.not_available') }} |