@extends('admin.layouts.master') @section('content')

{{ trans('app.email_templates') }}

@can('create', \App\Models\EmailTemplate::class) {{ trans('app.add_template') }} @endcan
@can('massDelete', \App\Models\EmailTemplate::class) @endcan @if (\Auth::user()->isFromPlatform()) @endif @foreach ($templates as $template) @can('massDelete', \App\Models\EmailTemplate::class) @endcan @if (\Auth::user()->isFromPlatform()) @endif @endforeach
{{ trans('app.name') }} {{ trans('app.subject') }} {{ trans('app.sender_email') }} {{ trans('app.type') }}{{ trans('app.template_for') }}{{ trans('app.option') }}
{{ $template->name }} {{ $template->subject }} {{ $template->sender_email }} {{ $template->type }}{{ $template->template_for }} @can('view', $template)   @endcan @can('update', $template)   @endcan @can('delete', $template) {!! Form::open(['route' => ['admin.utility.emailTemplate.trash', $template->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan

@can('massDelete', \App\Models\EmailTemplate::class) {!! Form::open(['route' => ['admin.utility.emailTemplate.emptyTrash'], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm btn btn-default btn-flat ajax-silent', 'title' => trans('help.empty_trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'right']) !!} {!! Form::close() !!} @else @endcan {{ trans('app.trash') }}

@foreach ($trashes as $trash) @endforeach
{{ trans('app.name') }} {{ trans('app.subject') }} {{ trans('app.sender_email') }} {{ trans('app.type') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ $trash->name }} {{ $trash->subject }} {{ $trash->sender_email }} {{ $trash->type }} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.utility.emailTemplate.destroy', $trash->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.delete_permanently'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
@endsection