@if($datas) @php $i=1; @endphp @foreach ($datas as $data) @endforeach @endif
Billing
Date: {{ $todayDate }}
Sr No Subscription Billing No. LOB Name LOB Type LOB Plan Users From Date Due Date Amount Status Paid Date
{{ $i++ }} {{$data->serial_number}} @if($data->plan_duration=='YLY') 365 @elseif($data->plan_duration=='QTR') 90 @elseif($data->plan_duration=='MTH') 30 @else 15 @endif Days {{ $data->start_at }} {{ $data->end_at }} 0 @if($data->plan_name=='Free-Trial') Free @endif @php $checkStatue=false; $paidDate='';@endphp @if(!$data['Transaction']->isEmpty()) @foreach($data['Transaction'] as $item) @if($item->status=='Success') @php $checkStatue=true; @endphp Paid @if($item->payment_date) @php $paidDate= date('d-m-Y', strtotime($item->payment_date)); @endphp @endif @endif @endforeach @endif @if(!$checkStatue) Unpaid @endif {{ $paidDate }}