@extends('layouts.app') @section('title', __('accounting::lang.insurance_premiums')) @section('content') @include('accounting::layouts.nav')

@lang('accounting::lang.insurance_premiums')

@csrf
{!! Form::select('premium_type', ['employee' => __('accounting::lang.insurance_type_employee'), 'liability' => __('accounting::lang.insurance_type_liability'), 'asset' => __('accounting::lang.insurance_type_asset'), 'other' => __('accounting::lang.insurance_type_other')], 'other', ['class'=>'form-control']) !!}
@forelse($premiums as $premium) @empty @endforelse
@lang('accounting::lang.policy_number') @lang('accounting::lang.provider_name') @lang('sale.amount') @lang('accounting::lang.due_date') @lang('sale.status') @lang('messages.action')
{{ $premium->policy_number ?: '-' }} {{ $premium->provider_name }} {{ number_format($premium->amount, 2) }} {{ optional($premium->due_date)->format('Y-m-d') }} {{ $premium->status }} @if($premium->status === 'pending')
@csrf {!! Form::select('expense_account_id', $accounts, null, ['class'=>'form-control input-sm','placeholder'=>__('accounting::lang.expense_account'),'required']) !!} {!! Form::select('bank_account_id', $accounts, null, ['class'=>'form-control input-sm','placeholder'=>__('accounting::lang.bank_account'),'required']) !!}
@else {{ optional($premium->paid_date)->format('Y-m-d') }} @endif
@lang('lang_v1.no_data')
{{ $premiums->links() }}
@endsection