From 76f4149c4bcd0e4ba3ad0c9676bceaa0ec184210 Mon Sep 17 00:00:00 2001 From: Sakthi002 Date: Fri, 1 Jan 2021 12:34:43 +0530 Subject: [PATCH] Bootstrap4 :: Emails Module UI updated --- .../helpdesk/emails/banlist/create.blade.php | 97 +++-- .../helpdesk/emails/banlist/edit.blade.php | 73 ++-- .../helpdesk/emails/banlist/index.blade.php | 63 +-- .../helpdesk/emails/emails/create.blade.php | 329 ++++++++------- .../helpdesk/emails/emails/edit.blade.php | 397 +++++++++--------- .../helpdesk/emails/emails/index.blade.php | 199 +++++---- .../emails/template/formDiagno.blade.php | 105 +++-- .../admin/helpdesk/queue/edit.blade.php | 29 +- .../admin/helpdesk/queue/index.blade.php | 22 +- .../admin/helpdesk/settings/email.blade.php | 83 ++-- .../default1/admin/layout/admin.blade.php | 4 +- .../default1/common/template/edit.blade.php | 138 +++--- .../common/template/list-templates.blade.php | 57 ++- .../default1/common/template/sets.blade.php | 100 +++-- 14 files changed, 898 insertions(+), 798 deletions(-) diff --git a/resources/views/themes/default1/admin/helpdesk/emails/banlist/create.blade.php b/resources/views/themes/default1/admin/helpdesk/emails/banlist/create.blade.php index d7839f373..dda1e3da5 100644 --- a/resources/views/themes/default1/admin/helpdesk/emails/banlist/create.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/emails/banlist/create.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Emails') -active +class="nav-link active" @stop -@section('emails-bar') -active +@section('email-menu-parent') +class="nav-item menu-open" +@stop + +@section('email-menu-open') +class="nav nav-treeview menu-open" @stop @section('ban') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -29,57 +33,62 @@ class="active" @section('content') {!! Form::open(['action' => 'Admin\helpdesk\BanlistController@store','method' => 'POST']) !!} -
-
-

{{Lang::get('lang.create_a_banned_email')}}

+ +@if(Session::has('success')) +
+ + + {{Session::get('success')}} +
+@endif +@if(Session::has('errors')) +
+ + {!! Lang::get('lang.alert') !!}! + +
+ @if($errors->first('ban')) +
  • {!! $errors->first('ban', ':message') !!}
  • + @endif + @if($errors->first('email')) +
  • {!! $errors->first('email', ':message') !!}
  • + @endif +
    +@endif +
    +
    +

    {{Lang::get('lang.create_a_banned_email')}}

    -
    - @if(Session::has('success')) -
    - - - {{Session::get('success')}} -
    - @endif - @if(Session::has('errors')) -
    - - {!! Lang::get('lang.alert') !!}! - -
    - @if($errors->first('ban')) -
  • {!! $errors->first('ban', ':message') !!}
  • - @endif - @if($errors->first('email')) -
  • {!! $errors->first('email', ':message') !!}
  • - @endif -
    - @endif -
    - {!! Form::label('ban',Lang::get('lang.ban_status')) !!} * -
    -
    - {!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}} -
    -
    - {!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}} +
    + +
    + +
    + {!! Form::label('email',Lang::get('lang.email_address')) !!} * + {!! Form::text('email',null,['class' => 'form-control']) !!} + +
    + +
    + {!! Form::label('ban',Lang::get('lang.ban_status')) !!} * +
    +
    + {!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}} +
    +
    + {!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}} +
    - -
    - {!! Form::label('email',Lang::get('lang.email_address')) !!} * - {!! Form::text('email',null,['class' => 'form-control']) !!} - -
    {!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!} {!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
    - diff --git a/resources/views/themes/default1/admin/helpdesk/emails/banlist/edit.blade.php b/resources/views/themes/default1/admin/helpdesk/emails/banlist/edit.blade.php index 66c618dcf..50e93baaa 100644 --- a/resources/views/themes/default1/admin/helpdesk/emails/banlist/edit.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/emails/banlist/edit.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Emails') -active +class="nav-link active" @stop -@section('emails-bar') -active +@section('email-menu-parent') +class="nav-item menu-open" +@stop + +@section('email-menu-open') +class="nav nav-treeview menu-open" @stop @section('ban') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -28,46 +32,49 @@ class="active" @section('content') {!! Form::model($bans,['url'=>'banlist/'.$bans->id,'method'=>'PATCH']) !!} -
    -
    -

    {{Lang::get('lang.edit_banned_email')}}

    +@if(Session::has('errors')) +
    + + {!! Lang::get('lang.alert') !!}! + +
    + @if($errors->first('ban')) +
  • {!! $errors->first('ban', ':message') !!}
  • + @endif +
    +@endif +
    +
    +

    {{Lang::get('lang.edit_banned_email')}}

    -
    - @if(Session::has('errors')) -
    - - {!! Lang::get('lang.alert') !!}! - -
    - @if($errors->first('ban')) -
  • {!! $errors->first('ban', ':message') !!}
  • - @endif -
    - @endif -
    - {!! Form::label('ban',Lang::get('lang.ban_status')) !!} * -
    -
    - {!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}} -
    -
    - {!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}} +
    + +
    + +
    + {!! Form::label('email',Lang::get('lang.email_address')) !!} * + {!! Form::text('email',null,['disabled'=>'disabled','class' => 'form-control']) !!} +
    +
    + {!! Form::label('ban',Lang::get('lang.ban_status')) !!} * +
    +
    + {!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}} +
    +
    + {!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}} +
    - -
    - {!! Form::label('email',Lang::get('lang.email_address')) !!} * - {!! Form::text('email',null,['disabled'=>'disabled','class' => 'form-control']) !!} -
    {!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!} {!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
    - diff --git a/resources/views/themes/default1/admin/helpdesk/emails/banlist/index.blade.php b/resources/views/themes/default1/admin/helpdesk/emails/banlist/index.blade.php index 19ecd76b3..8944e8655 100644 --- a/resources/views/themes/default1/admin/helpdesk/emails/banlist/index.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/emails/banlist/index.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Emails') -active +class="nav-link active" @stop -@section('emails-bar') -active +@section('email-menu-parent') +class="nav-item menu-open" +@stop + +@section('email-menu-open') +class="nav nav-treeview menu-open" @stop @section('ban') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -28,29 +32,33 @@ class="active" @section('content') -
    -
    -

    {{Lang::get('lang.list_of_banned_emails')}}

    {{Lang::get('lang.ban_email')}} + +@if(Session::has('success')) +
    + + + {{Session::get('success')}} +
    +@endif + +@if(Session::has('fails')) +
    + + {!! Lang::get('lang.fails') !!} ! + + {{Session::get('fails')}} +
    +@endif +
    +
    +

    {{Lang::get('lang.list_of_banned_emails')}}

    +
    -
    - - @if(Session::has('success')) -
    - - - {{Session::get('success')}} -
    - @endif - - @if(Session::has('fails')) -
    - - {!! Lang::get('lang.fails') !!} ! - - {{Session::get('fails')}} -
    - @endif - +
    + +
    @@ -65,7 +73,8 @@ class="active" @endforeach diff --git a/resources/views/themes/default1/admin/helpdesk/emails/emails/create.blade.php b/resources/views/themes/default1/admin/helpdesk/emails/emails/create.blade.php index 889458591..248c15b8c 100644 --- a/resources/views/themes/default1/admin/helpdesk/emails/emails/create.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/emails/emails/create.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Emails') -active +class="nav-link active" @stop -@section('emails-bar') -active +@section('email-menu-parent') +class="nav-item menu-open" +@stop + +@section('email-menu-open') +class="nav nav-treeview menu-open" @stop @section('emails') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -27,211 +31,210 @@ class="active" @section('content') + + + -
    -
    -

    {!! Lang::get('lang.email_information_and_settings') !!}

    +
    +
    +

    {!! Lang::get('lang.email_information_and_settings') !!}

    -
    - - -
    -
    +
    -
    +
    {!! Form::label('email_address',Lang::get('lang.email_address')) !!} * {!! $errors->first('email_address', ':message') !!} {!! Form::text('email_address',null,['class' => 'form-control', 'id' => 'email_address']) !!}
    -
    +
    {!! Form::label('user_name',Lang::get('lang.user_name')) !!} {!! $errors->first('user_name', ':message') !!} {!! Form::text('user_name',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('email_name',Lang::get('lang.from_name')) !!} * {!! $errors->first('email_name', ':message') !!} {!! Form::text('email_name',null,['class' => 'form-control', 'id' => 'email_name']) !!}
    -
    +
    {!! Form::label('password',Lang::get('lang.password')) !!} * {!! $errors->first('password', ':message') !!} {!! Form::password('password',['class' => 'form-control', 'id' => 'password']) !!}
    -
    -
    -

    {!! Lang::get('lang.new_ticket_settings') !!}

    -
    -
    -
    - -
    - {!! Form::label('department',Lang::get('lang.department')) !!} - {!! $errors->first('department', ':message') !!} - {!!Form::select('department', [''=>'--System Default--','departments'=>$departments->pluck('name','id')->toArray()],null,['class' => 'form-control select', 'id' => 'department' ]) !!} + +
    + +
    +

    {!! Lang::get('lang.new_ticket_settings') !!}

    - -
    - {!! Form::label('priority',Lang::get('lang.priority')) !!} - {!! $errors->first('priority', ':message') !!} - {!!Form::select('priority', [''=>'--System Default--','Priorities'=>$priority->pluck('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select', 'id' => 'priority']) !!} -
    - -
    - {!! Form::label('help_topic',Lang::get('lang.help_topic')) !!} - {!! $errors->first('help_topic', ':message') !!} - {!!Form::select('help_topic', [''=>'--System Default--','Help Topics'=>$helps->pluck('topic','id')->toArray()],null,['class' => 'form-control select', 'id' => 'help_topic']) !!} -
    - -
    - {!! Form::label('auto_response',Lang::get('lang.auto_response')) !!} -
    -
    - {{Lang::get('lang.disable_for_this_email_address')}} -
    -
    -
    -
    -

    {!! Lang::get('lang.incoming_email_information') !!}

    -
    -
    -
    -
    - -
    - {!! Form::label('fetching_status',Lang::get('lang.status')) !!} +
    +
    + +
    + {!! Form::label('department',Lang::get('lang.department')) !!} + {!! $errors->first('department', ':message') !!} + {!!Form::select('department', [''=>'--System Default--','departments'=>$departments->pluck('name','id')->toArray()],null,['class' => 'form-control select', 'id' => 'department' ]) !!} +
    + +
    + {!! Form::label('priority',Lang::get('lang.priority')) !!} + {!! $errors->first('priority', ':message') !!} + {!!Form::select('priority', [''=>'--System Default--','Priorities'=>$priority->pluck('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select', 'id' => 'priority']) !!} +
    + +
    + {!! Form::label('help_topic',Lang::get('lang.help_topic')) !!} + {!! $errors->first('help_topic', ':message') !!} + {!!Form::select('help_topic', [''=>'--System Default--','Help Topics'=>$helps->pluck('topic','id')->toArray()],null,['class' => 'form-control select', 'id' => 'help_topic']) !!} +
    + +
    + {!! Form::label('auto_response',Lang::get('lang.auto_response')) !!} +
    +
    + + {{Lang::get('lang.disable_for_this_email_address')}} +
    -
    - - {{Lang::get('lang.enable')}} +
    +
    + +
    + +
    +

    {!! Lang::get('lang.incoming_email_information') !!}

    +
    + +
    +
    +
    + + {!! Form::label('fetching_status',Lang::get('lang.status')) !!} + {{Lang::get('lang.enable')}} +
    -
    - +
    +
    + {!! Form::label('fetching_protocol',Lang::get('lang.protocol')) !!} + {!! $errors->first('fetching_protocol', ':message') !!} + {!!Form::select('fetching_protocol',['imap' => 'IMAP', 'pop' => 'POP3'],null,['class' => 'form-control select', 'id' => 'fetching_protocol']) !!} +
    +
    + {!! Form::label('fetching_host',Lang::get('lang.host_name')) !!} + {!! $errors->first('fetching_host', ':message') !!} + {!! Form::text('fetching_host',null,['class' => 'form-control', 'id' => 'fetching_host']) !!} +
    +
    + {!! Form::label('fetching_port',Lang::get('lang.port_number')) !!} + {!! $errors->first('fetching_port', ':message') !!} + {!! Form::text('fetching_port',null,['class' => 'form-control', 'id' => 'fetching_port']) !!} +
    +
    + {!! Form::label('fetching_encryption',Lang::get('lang.encryption')) !!} + {!! $errors->first('fetching_encryption', ':message') !!} + {!!Form::select('fetching_encryption',[''=>'-----Select-----','ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select', 'id' => 'fetching_encryption']) !!} +
    +
    + {!! Form::label('fetching_authentication',Lang::get('lang.authentication')) !!} + {!!Form::select('imap_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'imap_authentication']) !!} +
    +
    +
    +   {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!} +
    -
    +
    -
    -
    - {!! Form::label('fetching_protocol',Lang::get('lang.protocol')) !!} - {!! $errors->first('fetching_protocol', ':message') !!} - {!!Form::select('fetching_protocol',['imap' => 'IMAP', 'pop' => 'POP3'],null,['class' => 'form-control select', 'id' => 'fetching_protocol']) !!} -
    -
    - {!! Form::label('fetching_host',Lang::get('lang.host_name')) !!} - {!! $errors->first('fetching_host', ':message') !!} - {!! Form::text('fetching_host',null,['class' => 'form-control', 'id' => 'fetching_host']) !!} -
    -
    - {!! Form::label('fetching_port',Lang::get('lang.port_number')) !!} - {!! $errors->first('fetching_port', ':message') !!} - {!! Form::text('fetching_port',null,['class' => 'form-control', 'id' => 'fetching_port']) !!} -
    -
    - {!! Form::label('fetching_encryption',Lang::get('lang.encryption')) !!} - {!! $errors->first('fetching_encryption', ':message') !!} - {!!Form::select('fetching_encryption',[''=>'-----Select-----','ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select', 'id' => 'fetching_encryption']) !!} -
    -
    - {!! Form::label('fetching_authentication',Lang::get('lang.authentication')) !!} - {!!Form::select('imap_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'imap_authentication']) !!} -
    -
    -
    -   {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!} + +
    + +
    +

    {!! Lang::get('lang.outgoing_email_information') !!}

    +
    +
    + +
    + {!! Form::label('sending_status',Lang::get('lang.status')) !!} + {!! Lang::get('lang.enable') !!} +
    +
    +
    + +
    + {!! Form::label('sending_protocol',Lang::get('lang.transfer_protocol')) !!} + {!! $errors->first('sending_protocol', ':message') !!} + {!!Form::select('sending_protocol',[''=>'Select','Drives'=>$services],null,['class' => 'form-control select','id'=>'service']) !!} +
    + +
    + {!! Form::label('sending_host',Lang::get('lang.host_name')) !!} + {!! $errors->first('sending_host', ':message') !!} + {!! Form::text('sending_host',null,['class' => 'form-control']) !!} +
    + +
    + {!! Form::label('sending_port',Lang::get('lang.port_number')) !!} + {!! $errors->first('sending_port', ':message') !!} + {!! Form::text('sending_port',null,['class' => 'form-control']) !!} +
    + +
    + {!! Form::label('sending_encryption',Lang::get('lang.encryption')) !!} + {!! $errors->first('sending_encryption', ':message') !!} + {!!Form::select('sending_encryption',[''=>'-----Select-----','ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select']) !!} +
    +
    + {!! Form::label('sending_authentication',Lang::get('lang.authentication')) !!} + {!!Form::select('smtp_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'smtp_authentication']) !!} +
    +
    +
    +   {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!} +
    +
    +
    + +
    + {!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!} + {!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '30x10']) !!} +
    +
    -
    -
    -

    {!! Lang::get('lang.outgoing_email_information') !!}

    -
    -
    -
    - -
    -
    - {!! Form::label('sending_status',Lang::get('lang.status')) !!} -
    -
    - {!! Lang::get('lang.enable') !!} -
    -
    - -
    -
    -
    -
    - -
    - {!! Form::label('sending_protocol',Lang::get('lang.transfer_protocol')) !!} - {!! $errors->first('sending_protocol', ':message') !!} - {!!Form::select('sending_protocol',[''=>'Select','Drives'=>$services],null,['class' => 'form-control select','id'=>'service']) !!} -
    - -
    - {!! Form::label('sending_host',Lang::get('lang.host_name')) !!} - {!! $errors->first('sending_host', ':message') !!} - {!! Form::text('sending_host',null,['class' => 'form-control']) !!} -
    - -
    - {!! Form::label('sending_port',Lang::get('lang.port_number')) !!} - {!! $errors->first('sending_port', ':message') !!} - {!! Form::text('sending_port',null,['class' => 'form-control']) !!} -
    - -
    - {!! Form::label('sending_encryption',Lang::get('lang.encryption')) !!} - {!! $errors->first('sending_encryption', ':message') !!} - {!!Form::select('sending_encryption',[''=>'-----Select-----','ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select']) !!} -
    -
    - {!! Form::label('sending_authentication',Lang::get('lang.authentication')) !!} - {!!Form::select('smtp_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'smtp_authentication']) !!} -
    -
    -
    -   {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!} -
    -
    -
    - -
    - {!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!} - {!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '30x10']) !!} -
    -
    - + +
    -
    {{Lang::get('lang.email_address')}} {{Lang::get('lang.last_updated')}} {!! UTC::usertimezone($ban->updated_at) !!} - {!! Lang::get('lang.edit') !!} {!! Lang::get('lang.delete') !!} + {!! Lang::get('lang.edit') !!} + {!! Lang::get('lang.delete') !!}
    - - - - - - - - - @foreach($emails as $email) - - - - priority)->first(); ?> - @if($email->priority == null) - System Default"; ?> - @else - priority_desc); ?> - @endif - - @if($email->department !== null) - department)->first(); - $dept = $department->name; ?> - @elseif($email->department == null) - System Default"; ?> - @endif - - - - - - - @endforeach -
    {{Lang::get('lang.email')}}{{Lang::get('lang.priority')}}{{Lang::get('lang.department')}}{{Lang::get('lang.created')}}{{Lang::get('lang.last_updated')}}{{Lang::get('lang.action')}}
    {{$email -> email_address }} - @if($default_email == $email->id) - ( Default ) - - @else - - @endif - {!! $priority !!}{!! $dept !!}{!! UTC::usertimezone($email->created_at) !!}{!! UTC::usertimezone($email->updated_at) !!} - {!! Form::open(['route'=>['emails.destroy', $email->id],'method'=>'DELETE']) !!} - Edit - - {!! Form::button(' Delete', - ['type' => 'submit', - 'class'=> 'btn btn-warning btn-xs btn-flat '. $disabled, - 'onclick'=>'return confirm("Are you sure?")']) - !!} - {!! Form::close() !!} -
    -
    +
    + + Success! + + {{Session::get('success')}}
    +@endif + +@if(Session::has('fails')) +
    + + Fail! + + {{Session::get('fails')}}
    +@endif + +
    + +
    + +

    {!! Lang::get('lang.emails') !!}

    + + +
    + +
    + first(); + if($default_system_email->sys_email) { + $default_email = $default_system_email->sys_email; + } else { + $default_email = null; + } + ?> + + + + + + + + + + + + @foreach($emails as $email) + + + priority)->first(); ?> + @if($email->priority == null) + System Default"; ?> + @else + priority_desc); ?> + @endif + + @if($email->department !== null) + department)->first(); + $dept = $department->name; ?> + @elseif($email->department == null) + System Default"; ?> + @endif + + + + + + + @endforeach +
    {{Lang::get('lang.email')}}{{Lang::get('lang.priority')}}{{Lang::get('lang.department')}}{{Lang::get('lang.created')}}{{Lang::get('lang.last_updated')}}{{Lang::get('lang.action')}}
    {{$email -> email_address }} + @if($default_email == $email->id) + ( Default ) + + @else + + @endif + {!! $priority !!}{!! $dept !!}{!! UTC::usertimezone($email->created_at) !!}{!! UTC::usertimezone($email->updated_at) !!} + {!! Form::open(['route'=>['emails.destroy', $email->id],'method'=>'DELETE']) !!} + Edit + + + @if($default_email == $email->id) + {!! Form::button(' Delete', + ['class'=> 'btn btn-danger btn-xs '. $disabled]) + !!} + @else + {!! Form::button(' Delete', + ['type' => 'submit', + 'class'=> 'btn btn-danger btn-xs', + 'onclick'=>'return confirm("Are you sure?")']) + !!} + @endif + + + {!! Form::close() !!} +
    +
    @stop diff --git a/resources/views/themes/default1/admin/helpdesk/emails/template/formDiagno.blade.php b/resources/views/themes/default1/admin/helpdesk/emails/template/formDiagno.blade.php index fb6e7c591..0ddaa47fd 100644 --- a/resources/views/themes/default1/admin/helpdesk/emails/template/formDiagno.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/emails/template/formDiagno.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Emails') -active +class="nav-link active" @stop -@section('emails-bar') -active +@section('email-menu-parent') +class="nav-item menu-open" +@stop + +@section('email-menu-open') +class="nav nav-treeview menu-open" @stop @section('diagnostics') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -24,48 +28,49 @@ class="active"
    -
    -
    -

    {{Lang::get('lang.send-mail-to-diagnos')}}

    + @if(Session::has('success') && !Session::has('fails')) +
    + + + {{Session::get('success')}} +
    + @endif + + @if(Session::has('fails')) +
    + + + {!! Lang::get('lang.alert') !!} !
    +
  • {{Session::get('fails')}}
  • +
    + @endif + @if(Session::has('errors')) + +
    + + {!! Lang::get('lang.alert') !!} ! + +
    + @if($errors->first('from')) +
  • {!! $errors->first('from', ':message') !!}
  • + @endif + @if($errors->first('to')) +
  • {!! $errors->first('to', ':message') !!}
  • + @endif + @if($errors->first('subject')) +
  • {!! $errors->first('subject', ':message') !!}
  • + @endif + @if($errors->first('message')) +
  • {!! $errors->first('message', ':message') !!}
  • + @endif +
    + @endif +
    +
    +

    {{Lang::get('lang.send-mail-to-diagnos')}}

    -
    - @if(Session::has('success') && !Session::has('fails')) -
    - - - {{Session::get('success')}} -
    - @endif - - @if(Session::has('fails')) -
    - - - {!! Lang::get('lang.alert') !!} !
    -
  • {{Session::get('fails')}}
  • -
    - @endif - @if(Session::has('errors')) - -
    - - {!! Lang::get('lang.alert') !!} ! - -
    - @if($errors->first('from')) -
  • {!! $errors->first('from', ':message') !!}
  • - @endif - @if($errors->first('to')) -
  • {!! $errors->first('to', ':message') !!}
  • - @endif - @if($errors->first('subject')) -
  • {!! $errors->first('subject', ':message') !!}
  • - @endif - @if($errors->first('message')) -
  • {!! $errors->first('message', ':message') !!}
  • - @endif -
    - @endif +
    +
    @@ -114,14 +119,8 @@ class="active"
    - diff --git a/resources/views/themes/default1/admin/helpdesk/queue/edit.blade.php b/resources/views/themes/default1/admin/helpdesk/queue/edit.blade.php index c5a31edda..647d3ad6a 100644 --- a/resources/views/themes/default1/admin/helpdesk/queue/edit.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/queue/edit.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Emails') -active +class="nav-link active" @stop -@section('emails-bar') -active +@section('email-menu-parent') +class="nav-item menu-open" +@stop + +@section('email-menu-open') +class="nav nav-treeview menu-open" @stop @section('queue') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -56,22 +60,21 @@ class="active" {{Session::get('warn')}}
    @endif -
    -
    -
    - {!! Lang::get('lang.queues') !!} -
    - +
    +
    +

    {!! Lang::get('lang.queues') !!}

    -
    +
    {!! Form::open(['url'=>'queue/'.$queue->id,'method'=>'post','id'=>'form']) !!}
    - {!! Form::submit('save',['class'=>'btn btn-primary']) !!} - {!! Form::close() !!}
    +
    - - @stop \ No newline at end of file diff --git a/resources/views/themes/default1/common/template/sets.blade.php b/resources/views/themes/default1/common/template/sets.blade.php index 2e5b46aa4..40ff9b94a 100644 --- a/resources/views/themes/default1/common/template/sets.blade.php +++ b/resources/views/themes/default1/common/template/sets.blade.php @@ -1,36 +1,54 @@ @extends('themes.default1.admin.layout.admin') +@section('Emails') +class="nav-link active" +@stop + +@section('email-menu-parent') +class="nav-item menu-open" +@stop + +@section('email-menu-open') +class="nav nav-treeview menu-open" +@stop + +@section('template') +class="nav-link active" +@stop + @section('PageHeader')

    {!! Lang::get('lang.template_set') !!}

    @stop @section('content') -
    -
    -

    {!! Lang::get('lang.list_of_templates_sets') !!}

    -
    - +@if(Session::has('success')) +
    + + + {{Session::get('success')}} +
    +@endif + +@if(Session::has('failed')) +
    + + + {!! Lang::get('lang.alert') !!} !
    +
  • {{Session::get('failed')}}
  • +
    +@endif + +
    +
    +

    {!! Lang::get('lang.list_of_templates_sets') !!}

    +
    +
    -
    - - @if(Session::has('success')) -
    - - - {{Session::get('success')}} -
    - @endif - - @if(Session::has('failed')) -
    - - - {!! Lang::get('lang.alert') !!} !
    -
  • {{Session::get('failed')}}
  • -
    - @endif +
    @@ -80,8 +98,8 @@ - + {!! Form::close() !!} @@ -108,19 +125,19 @@ $dis = ""; } ?> - -