@extends('web.layouts.app') @section('content')

@lang('user.templates')

@can('templates-create') @lang('user.create_template') @endcan

{!! Form::select('status', ['' => __('user.status'), '0' => 'Inactive', '1' => 'Active'], request()->input('status'), ['class' => 'form-control', 'data-placeholder' => __('user.status')]) !!}
@if (request()->has('keyword')) @endif
@foreach ($templates as $template) @endforeach
@lang('user.name') @lang('user.category') @lang('user.status') @lang('user.actions')
{{ $template->name }} {{ \App\Models\MessengerTemplate::$categories[$template->category] ?? '' }}
@can('templates-edit') @endcan
{{ $templates->appends(request()->input())->links('vendor.pagination.custom') }}

@lang('user.note')

@lang('notes.templates_note')

@endsection @section('script') @endsection