diff --git a/app/Http/Controllers/Admin/helpdesk/LanguageController.php b/app/Http/Controllers/Admin/helpdesk/LanguageController.php index 8fc001c8d..858d58284 100644 --- a/app/Http/Controllers/Admin/helpdesk/LanguageController.php +++ b/app/Http/Controllers/Admin/helpdesk/LanguageController.php @@ -114,11 +114,11 @@ class LanguageController extends Controller }) ->addColumn('Action', function ($model) use ($sysLanguage) { if ($model === $sysLanguage) { - return " - ".Lang::trans('lang.delete').''; + return " + '; } else { - return " - ".Lang::trans('lang.delete').''; + return " + ".Lang::trans('lang.delete').''; } }) ->searchColumns('language', 'id') diff --git a/resources/views/themes/default1/admin/helpdesk/language/create.blade.php b/resources/views/themes/default1/admin/helpdesk/language/create.blade.php index e203fe95c..a59758a83 100644 --- a/resources/views/themes/default1/admin/helpdesk/language/create.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/language/create.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Settings') -active +class="nav-link active" @stop -@section('settings-bar') -active +@section('settings-menu-parent') +class="nav-item menu-open" +@stop + +@section('settings-menu-open') +class="nav nav-treeview menu-open" @stop @section('languages') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -29,63 +33,63 @@ class="active" @section('content') {!! Form::open(array('url'=>'language/add' , 'method' => 'post', 'files'=>true) )!!} -
-
-

{{Lang::get('lang.add-lang-package')}}

+@if(Session::has('success')) +
+ + + {{Session::get('success')}} +
+@endif + +@if(Session::has('fails')) +
+ + + {{Session::get('fails')}} + @if(Session::has('link')) + {{Lang::get('lang.enable_lang')}} + @endif + @if(Session::has('link2')) + {{Lang::get('lang.read-more')}} + @endif +
+@endif +@if(Session::has('errors')) + +
+ + {!! Lang::get('lang.alert') !!}! + +
+ @if($errors->first('language-name')) +
  • {!! $errors->first('language-name', ':message') !!}
  • + @endif + @if($errors->first('iso-code')) +
  • {!! $errors->first('iso-code', ':message') !!}
  • + @endif + @if($errors->first('File')) +
  • {!! $errors->first('File', ':message') !!}
  • + @endif +
    +@endif +
    +
    +

    {{Lang::get('lang.add-lang-package')}}

    -
    - @if(Session::has('success')) -
    - - -

    {{Session::get('success')}}

    -
    - @endif - - @if(Session::has('fails')) -
    - - - {{Session::get('fails')}} - @if(Session::has('link')) - {{Lang::get('lang.enable_lang')}} - @endif - @if(Session::has('link2')) - {{Lang::get('lang.read-more')}} - @endif -
    - @endif - @if(Session::has('errors')) - -
    - - {!! Lang::get('lang.alert') !!}! - -
    - @if($errors->first('language-name')) -
  • {!! $errors->first('language-name', ':message') !!}
  • - @endif - @if($errors->first('iso-code')) -
  • {!! $errors->first('iso-code', ':message') !!}
  • - @endif - @if($errors->first('File')) -
  • {!! $errors->first('File', ':message') !!}
  • - @endif -
    - @endif +
    -
    +
    {!! Form::label('language-name',Lang::get('lang.language-name')) !!} * {!! Form::text('language-name',null,['placeholder'=>'English','class' => 'form-control']) !!}
    -
    +
    {!! Form::label('iso-code',Lang::get('lang.iso-code')) !!} * {!! Form::text('iso-code',null,['placeholder'=>'en','class' => 'form-control']) !!}
    -
    +
    {!! Form::label('File',Lang::get('lang.file')) !!} * 
    {!! Lang::get('lang.upload_file') !!} {!! Form::file('File') !!} @@ -93,8 +97,8 @@ class="active"
    - @stop \ No newline at end of file diff --git a/resources/views/themes/default1/admin/helpdesk/language/index.blade.php b/resources/views/themes/default1/admin/helpdesk/language/index.blade.php index 02c32b4cf..00c1acfe4 100644 --- a/resources/views/themes/default1/admin/helpdesk/language/index.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/language/index.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Settings') -active +class="nav-link active" @stop -@section('settings-bar') -active +@section('settings-menu-parent') +class="nav-item menu-open" +@stop + +@section('settings-menu-open') +class="nav nav-treeview menu-open" @stop @section('languages') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -28,27 +32,33 @@ class="active" @section('content') -
    -
    -

    {{ Lang::get('lang.language-settings') }}

    {{Lang::get('lang.download')}} {{Lang::get('lang.add')}} + +@if(Session::has('success')) +
    + + + {{Session::get('success')}} @if(Session::has('link')){{Lang::get('lang.enable_lang')}} @endif +
    +@endif + +@if(Session::has('fails')) +
    + + + {{Session::get('fails')}} +
    +@endif +
    +
    +

    {{ Lang::get('lang.language-settings') }}

    +
    -
    - - @if(Session::has('success')) -
    - - - {{Session::get('success')}} @if(Session::has('link')){{Lang::get('lang.enable_lang')}} @endif -
    - @endif - - @if(Session::has('fails')) -
    - - - {{Session::get('fails')}} -
    - @endif +
    {!! Datatable::table() ->addColumn(Lang::get('lang.language'),Lang::get('lang.native-name'),Lang::get('lang.iso-code'),Lang::get('lang.system-language'),Lang::get('lang.Action')) // these are the column headings to be shown ->setUrl(route('getAllLanguages')) // this is the route where data will be retrieved diff --git a/resources/views/themes/default1/admin/helpdesk/settings/company.blade.php b/resources/views/themes/default1/admin/helpdesk/settings/company.blade.php index 05bdd573d..fa133dead 100644 --- a/resources/views/themes/default1/admin/helpdesk/settings/company.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/settings/company.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Settings') -active +class="nav-link active" @stop -@section('settings-bar') -active +@section('settings-menu-parent') +class="nav-item menu-open" +@stop + +@section('settings-menu-open') +class="nav nav-treeview menu-open" @stop @section('company') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -29,50 +33,48 @@ class="active" @section('content') {!! Form::model($companys,['url' => 'postcompany/'.$companys->id, 'method' => 'PATCH','files'=>true]) !!} - - -
    -
    -

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

    + +@if(Session::has('success')) +
    + + + {!!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('company_name')) +
  • {!! $errors->first('company_name', ':message') !!}
  • + @endif + @if($errors->first('website')) +
  • {!! $errors->first('website', ':message') !!}
  • + @endif + @if($errors->first('phone')) +
  • {!! $errors->first('phone', ':message') !!}
  • + @endif +
    +@endif +
    +
    +

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

    -
    - - @if(Session::has('success')) -
    - - - {!!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('company_name')) -
  • {!! $errors->first('company_name', ':message') !!}
  • - @endif - @if($errors->first('website')) -
  • {!! $errors->first('website', ':message') !!}
  • - @endif - @if($errors->first('phone')) -
  • {!! $errors->first('phone', ':message') !!}
  • - @endif -
    - @endif +
    @@ -95,13 +97,14 @@ class="active" {!! Form::text('phone',$companys->phone,['class' => 'form-control']) !!}
    -
    - -
    - {!! Form::label('address',Lang::get('lang.address')) !!} - {!! Form::textarea('address',$companys->address,['class' => 'form-control','size' => '30x5']) !!} -
    -
    +
    + +
    + {!! Form::label('address',Lang::get('lang.address')) !!} + {!! Form::textarea('address',$companys->address,['class' => 'form-control','size' => '30x5']) !!} +
    + +
    {!! Form::label('logo',Lang::get('lang.logo')) !!} @@ -109,40 +112,41 @@ class="active" {!! Form::file('logo') !!}
    -
    - @if($companys->logo != null) -
    - {!! Form::checkbox('use_logo') !!} +
    +
    +
    + @if($companys->logo != null) +
    + {!! Form::checkbox('use_logo') !!} +
    + @endif + first(); ?> + @if($companys->logo != null) +
    + +
    + @endif +
    - @endif - first(); ?> - @if($companys->logo != null) -
    - -
    - @endif
    -