| Path : /var/www/html/usd_loan_system/resources/views/communication/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //var/www/html/usd_loan_system/resources/views/communication/email.blade.php |
@extends('layouts.master')
@section('title'){{translate('sent email')}}
@endsection
@section('content')
<!-- Default box -->
<div class="panel panel-white">
<div class="panel-heading">
<h6 class="panel-title">{{translate('sent email')}}</h6>
<div class="heading-elements">
@if(Sentinel::hasAccess('communication.create'))
<a href="{{ url('communication/email/create') }}"
class="btn btn-info btn-sm">{{translate('send email')}}</a>
@endif
</div>
</div>
<div class="panel-body table-responsive">
<table id="data-table" class="table table-striped table-condensed table-hover">
<thead>
<tr>
<th>{{translate('send_by')}}</th>
<th>{{translate('to')}}</th>
<th>{{translate('recipient')}}</th>
<th>{{translate('message')}}</th>
<th>{{translate('date')}}</th>
<th>{{ translate('action') }}</th>
</tr>
</thead>
<tbody>
@foreach($data as $key)
<tr>
<td>
@if(!empty($key->user))
<a href="{{url('user/'.$key->user_id.'/show')}}">{{$key->user->first_name}} {{$key->user->last_name}}</a>
@else
@endif
</td>
<td>{{$key->send_to}}</td>
<td>{{$key->recipients}}</td>
<td>{!!$key->message!!}</td>
<td>{{$key->created_at}}</td>
<td>
@if(Sentinel::hasAccess('communication.delete'))
<a href="{{ url('communication/email/'.$key->id.'/delete') }}"
class="delete"><i
class="fa fa-trash"></i> </a>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<!-- /.panel-body -->
</div>
<!-- /.box -->
@endsection
@section('footer-scripts')
<script>
$('#data-table').DataTable({
"order": [[4, "desc"]],
"columnDefs": [
{"orderable": false, "targets": [5]}
],
"language": {
"lengthMenu": "{{ translate('lengthMenu') }}",
"zeroRecords": "{{ translate('zeroRecords') }}",
"info": "{{ translate('info') }}",
"infoEmpty": "{{ translate('infoEmpty') }}",
"search": "{{ translate('search') }}",
"infoFiltered": "{{ translate('infoFiltered') }}",
"paginate": {
"first": "{{ translate('first') }}",
"last": "{{ translate('last') }}",
"next": "{{ translate('next') }}",
"previous": "{{ translate('previous') }}"
}
}
});
</script>
@endsection