@if(@isset($dataParentLoan) and !@empty($dataParentLoan) ) @if(@isset( $dataParentLoan['instalmentDetails']) and !@empty( $dataParentLoan['instalmentDetails']) )
{{__('hr.added_at')}} | @php $dt=new DateTime($dataParentLoan['created_at']); $date=$dt->format("Y-m-d"); $time=$dt->format("h:i"); $newDateTime=date("a",strtotime($dataParentLoan['created_at'])); $newDateTimeType= (($newDateTime=='AM')?'am':'pm'); @endphp ({{ $date }}) ({{ $time .' '. __('hr.'. $newDateTimeType )}}) {{ $dataParentLoan->added->first_name }} | @if($dataParentLoan['paid_status']==1){{__('hr.paid_at')}} | @endif @if($dataParentLoan['paid_status']==1)@php $dt=new DateTime($dataParentLoan['paid_at']); $date=$dt->format("Y-m-d"); $time=$dt->format("h:i"); $newDateTime=date("a",strtotime($dataParentLoan['paid_at'])); $newDateTimeType= (($newDateTime=='AM') ? 'am':'pm'); @endphp ({{ $date }}) ({{ $time .' '. __('hr.'. $newDateTimeType )}}) {{ $dataParentLoan->added->first_name }} | @endif @if($dataParentLoan['updated_by']>0)تاريخ التحديث | @endif @if($dataParentLoan['updated_by']>0)@php $dt=new DateTime($dataParentLoan['updated_at']); $date=$dt->format("Y-m-d"); $time=$dt->format("h:i"); $newDateTime=date("a",strtotime($dataParentLoan['updated_at'])); $newDateTimeType= (($newDateTime=='AM')?'am ':'pm'); @endphp ({{ $date }}) ({{ $time }}) ({{ $newDateTimeType }} ) {{ $dataParentLoan->updatedby->first_name }} | @endif
{{__('hr.due_month')}} | {{__('hr.month_instalment')}} | {{__('hr.pay_status')}} | {{__('hr.archive_status')}} | {{__('hr.notes')}} | @foreach ( $dataParentLoan['instalmentDetails'] as $info )
---|---|---|---|---|
{{ $info->year_and_month }} | {{ $info->instalment_amount }} | @if($info->status==1) {{__('hr.paid_on_salary')}} @elseif ($info->status==2) {{__('hr.paid_cash')}} @else {{__('hr.paid_pending')}} @endif | @if($info->is_archived==1) {{__('messages.yes')}} @else {{__('messages.no')}} @endif | {{ $info->notes }} |
{{__('hr.due_month')}} | {{__('hr.month_instalment')}} | {{__('hr.pay_status')}} | {{__('hr.archive_status')}} | {{__('hr.notes')}} |
---|---|---|---|---|
{{__('lang_v1.No records has been added yet.')}} |
{{__('lang_v1.No records has been added yet.')}}
@endif