@php use App\MasterModel; use App\emailTemplateModel; //use App\HomeModel; //$homemodelInstance = new HomeModel(); $emailtemplatemodelInstance = new emailTemplateModel(); $master_instance = new MasterModel(); @endphp @php $email_name = $data['email_name']; $category_id = $master_instance->get_category_id($email_name); @endphp @if($category_id == 4) @include('backend.lead_email_template') @elseif($category_id == 3) @include('backend.system_email_template') @else @include('backend.customer_service_email_template') @endif