@extends('main') @section('css') @endsection @section('content')

{{$vars['name']}} List

@csrf
{{-- --}}
@foreach($vars['policies'] as $index => $row) @endforeach
S/N Policy Number Created Class Policy Holder Validity Status Action
{{++$index}} @isset($row->contract->policyNumber) {{$row->contract->policyNumber->policy_no}} @endisset {{\Carbon\Carbon::parse($row->contract->created_at)->format('Y M d')}} @isset($row->contract->service) {{$row->contract->service->name}} @endif {{-- @if(isset($row))--}} {{-- {{$row->CoverNoteReferenceNumber}}--}} {{-- @endif--}} @isset($row->contract->customers) @foreach($row->contract->customers as $customer) {{--$customer ->code --}}{{ $customer->PolicyHolderName}}
@endforeach @endisset
{{\Carbon\Carbon::parse($row->contract->startDate)->format('Y M d')}} To {{\Carbon\Carbon::parse($row->contract->endDate)->format('Y M d')}} {{$row?->sync}} @if(isset($row)) {{-- {{$row->sync}}--}} @if($row?->sync) @if(isset($row->PrevCoverNoteReferenceNumber)) PCNN:: {{$row->PrevCoverNoteReferenceNumber}}
@endif ReqId: {{$row->RequestId}}
Status:{{$row->status}}
CNN: {{$row->CoverNoteReferenceNumber}}
@endif @endif Risk Note: {{$row->id}}
@if( Auth::user()->hasRole('underwriter')) {{-- --}} {{-- --}} @endif
@endsection @section('js') @include('contracts.scripts.days') @include('contracts.scripts._policy') @include('customers.script') @endsection