@extends('layout') @section('title','Campaign') @section('top_panel') @parent @endsection @section('sidebar') @parent @endsection @section('content')
@if(has_permission('campaign','','edit'))
{{method_field('PATCH')}} {{csrf_field()}}
@if ($errors->has('name'))

{{ $errors->first('name') }}

@endif
@if ($errors->has('smtp_server'))

{{ $errors->first('smtp_server') }}

@endif
@if ($errors->has('template_id'))

{{ $errors->first('template_id') }}

@endif
@if ($errors->has('description'))

{{ $errors->first('description') }}

@endif
@if($templateKey) @foreach($templateKey as $key => $value) {{$value->display_name}} @endforeach @endif
@if ($errors->has('group_id'))

{{ $errors->first('group_id') }}

@endif
@endif
@endsection @section('footer') @parent @endsection