@if($datas) @php $i=1; @endphp @foreach ($datas as $data) @endforeach @endif
Billing
Date: {{ $todayDate }}
Sr No Subscription Billing No. Company Name User Name LOB Name LOB Type LOB Plan No. Users From Date Due Date Commission Amount Shared Amount Total Amount Status Paid Date
{{ $i++ }} {{$data->serial_number}} {{$data->plan_duration}} {{ $data->start_at }} {{ $data->end_at }} 0 0 0 @if($data->plan_name=='Free-Trial') Free Trial @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 }}