@foreach($cancel_subscribers as $cancel_subscriber) @php $plan = null; if($cancel_subscriber->stripe_plan){$plan = $cancel_subscriber->paymentPlan($cancel_subscriber->stripe_plan);} @endphp @if($cancel_subscriber->user) {{$cancel_subscriber->user->id}} @else {{$loop->iteration}} @endif @if($cancel_subscriber->user && $cancel_subscriber->user->name) {{$cancel_subscriber->user->name }} @else @endif @if($cancel_subscriber->user) {{$cancel_subscriber->user->email}} @else @endif {{ Carbon\Carbon::parse($cancel_subscriber->date)->format('d M Y') }} {{$cancel_subscriber->offer_code}} @if($cancel_subscriber->accepted == 1) Accepted @elseif($cancel_subscriber->accepted == 0) Denied @endif @if($cancel_subscriber->reason) {{$cancel_subscriber->reason->reason}} @endif @endforeach