@php $loginNAME = Session::get('emp_name') @endphp

{{$loginNAME}}

@csrf
@foreach($result as $index => $row) @endforeach
SNO Policy No Policy Name Policy Type Department Revised On Policy Doc-1 Policy Doc-2 Policy Doc-3 Remark
{{ $index + 1 }} {{ $row['Policy_No'] }} {{ $row['Name'] }} {{ $row['Department'] }} {{ date('Y-m-d', strtotime($row['Eff_from'])) }} @if($row['Policy_doc1'] !== "null") Document-1 @else -- @endif @if($row['Policy_doc2'] !== "null") Document-2 @else -- @endif @if($row['Policy_doc3'] !== "null") Document-3 @else -- @endif {{ $row['Remarks'] }}