@extends('layouts/gnr_layout') @section('title', '| Loan Product') @section('content') @php $foreignLoanProductIds = DB::table('acc_loan_register_account')->distinct()->pluck('loanProductId_fk')->toArray(); @endphp

LOAN PRODUCT LIST

@foreach($loanProducts as $index => $loanProduct) @php $donarName = DB::table('gnr_bank')->where('id',$loanProduct->donorId_fk)->value('name'); @endphp @endforeach
SL# Name Product Code Donar Action
{{$index+1}} {{$loanProduct->name}} {{$loanProduct->productCode}} {{$donarName}} {{--   --}}   @php if (in_array($loanProduct->id, $foreignLoanProductIds)) { $canDelete = 0; } else{ $canDelete = 1; } @endphp
{{-- Edit Modal --}} {{-- End Edit Modal --}} {{-- Delete Modal --}} {{-- End Delete Modal --}} @include('dataTableScript') @endsection