Viewing file: email_template.blade.php (1.82 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="form-group">
<button class="btn btn-primary float-right mb-3 btn-sm" data-title="Add New Template" type="button" id="addNewTemplate">{{trans('customer.add_template')}}</button>
</div>
<div class="card-body table-responsive p-0 " style="height: 300px;">
<table class="table table-head-fixed text-nowrap text-center">
<thead>
<tr>
<th>{{trans('customer.subject')}}</th>
<th>{{trans('customer.status')}}</th>
<th>{{trans('customer.action')}}</th>
</tr>
</thead>
<tbody>
@if($email_templates->isNotEmpty())
@foreach($email_templates as $email_template)
<tr>
<td>{{$email_template->title}}</td>
<td>@if($email_template->status=='active')
<span class="badge badge-success">{{$email_template->status}}</span>
@else
<span class="badge badge-danger">{{$email_template->status}}</span>
@endif
</td>
<td><button type="button" data-value="{{json_encode($email_template->only(['id','subject','status','body']))}}" class="btn btn-sm btn-info template-edit">Edit</button>
<button class="btn btn-sm btn-danger" type="button" data-message="Are you sure you want to delete this template?"
data-action="{{route('customer.email.template.delete',['id'=>$email_template->id])}}"
data-input={"_method":"delete"}
data-toggle="modal" data-target="#modal-confirm">Delete</button>
</td>
</tr>
@endforeach
@else
<tr>
<td></td>
<td colspan="1">{{trans('customer.no_data_available')}}</td>
</tr>
@endif
</tbody>
</table>
</div>
|