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

@if(isset($vars['serviceOrder']))
@csrf
@isset($vars['wallet_id']) @endisset
@include('reusable.inputText', ["colDiv" =>'col-md-3', 'label' =>' Reference', 'className'=>'reference', "name" =>'reference','inputType'=>'text',"required" =>'required']) @include('reusable.inputText', ["colDiv" =>'col-md-3', 'label' =>' Amount', 'value'=>$vars['amount'], 'className'=>'amount policy_amount', "name" =>'amount',"readonly" => 'readonly', 'inputType'=>'text'])
@endif
@if(!empty($vars['serviceOrders'])) @foreach($vars['serviceOrders'] as $index => $row) @endforeach @endif
S/N Policy Number Created Class Policy Holder Validity Status Action
{{++$index}} @isset($row->belong?->contract?->policyNumber) {{$row->belong?->contract?->policyNumber->policy_no}} @endisset {{\Carbon\Carbon::parse($row->policy?->contract?->created_at)->format('Y M d')}} @isset($row->policy?->contract?->service) {{$row->policy?->contract?->service->name}} @endif
@if(isset($row->belong) && $row->belong->count() == 1)

{{$row->belong->CoverNoteReferenceNumber}}

@endif
@isset($row->policy?->contract?->customers) @foreach($row->policy?->contract?->customers as $customer) {{$customer ->code }} - {{ $customer->PolicyHolderName}}
@endforeach @endisset
{{\Carbon\Carbon::parse($row->policy?->contract?->startDate)->format('Y M d')}} To {{\Carbon\Carbon::parse($row->policy?->contract?->endDate)->format('Y M d')}} @if(isset($row->belong) && $row->belong->count() == 1) @if(isset($row->belong?->sync) == 'Error') Request Id: {{$row->belong?->RequestId}}
Code:{{$row->belong?->ResponseStatusCode}}
Massage: {{$row->belong?->ResponseStatusDesc}} @else @endif @elseif(isset($row->belong) && $row->belong->count() > 1) Open Please @else In-Complete @endif
@if( Auth::user()->hasRole('underwriter')) {{-- --}} @endif
@endsection @section('js') @endsection