@extends('backend.layouts.master') @push('css') @endpush @section('content')
@include('backend.common-views.messages')

Email Updates

@php $i=0; @endphp @foreach ($data as $list) @php $subscription_end_date = \App\Models\SubscriptionFormDetail::where('email',$list->email)->latest()->first(); if(!empty($subscription_end_date)){ $invoice_data = \App\Models\InvoiceDetail::where('subscription_form_id',$subscription_end_date->id)->latest()->first(); }else{ $invoice_data = []; } @endphp @endforeach
SR No Email First Name Last Name County code Mobile No. Date Subscription End Date Status Action
{{++$i}} {{ $list->email}} @if(!empty($list->first_name)) {{$list->first_name}} @else - @endif @if(!empty($list->last_name)) {{$list->last_name}} @else - @endif {{$list->country_code}} @if(!empty($list->phone_no)) {{$list->phone_no}} @else - @endif {{ date('d-m-Y',strtotime($list->created_at)) }} {{ !empty($invoice_data) ? (!empty($invoice_data->subscription_end_date) ? date('d-m-Y', strtotime($invoice_data->subscription_end_date)) : '-') : '-' }} @if($list->is_active == 1) On @else Off @endif
is_active ? 'checked' : '' }} onchange="changeStatus({{$list->id}})" data-onstyle="primary" data-size="medium">
@endsection @push('js') @endpush