update v 1.0.7.5

This commit is contained in:
Sujit Prasad
2016-06-13 20:41:55 +05:30
parent aa9786d829
commit 283d97e3ea
5078 changed files with 339851 additions and 175995 deletions

View File

@@ -12,88 +12,89 @@ active
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
<h1>{!! Lang::get('lang.language') !!}</h1>
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(array('url'=>'language/add' , 'method' => 'post', 'files'=>true) )!!}
{!! Form::open(array('url'=>'language/add' , 'method' => 'post', 'files'=>true) )!!}
<div class="box box-primary">
<div class="content-header">
<h4>{{Lang::get('lang.add-lang-package')}} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<p>{{Session::get('success')}}</p>
</div>
<div class="box-header with-border">
<h3 class="box-title">{{Lang::get('lang.add-lang-package')}}</h3>
</div>
<div class="box-body">
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<p>{{Session::get('success')}}</p>
</div>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
@if(Session::has('link'))
<a href="{{url(Session::get('link'))}}">{{Lang::get('lang.enable_lang')}}</a>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
@if(Session::has('link'))
<a href="{{url(Session::get('link'))}}">{{Lang::get('lang.enable_lang')}}</a>
@endif
@if(Session::has('link2'))
<a href="{{url(Session::get('link2'))}}" target="blank">{{Lang::get('lang.read-more')}}</a>
@endif
</div>
@if(Session::has('link2'))
<a href="{{url(Session::get('link2'))}}" target="blank">{{Lang::get('lang.read-more')}}</a>
@endif
<div class="row">
<!-- username -->
<div class="col-xs-4 form-group {{ $errors->has('language-name') ? 'has-error' : '' }}">
{!! Form::label('language-name',Lang::get('lang.language-name')) !!}
{!! Form::text('language-name',null,['placeholder'=>'English','class' => 'form-control']) !!}
{!! $errors->first('language-name', '<spam class="help-block" style="color:red">:message</spam>') !!}
</div>
<div class="col-xs-4 form-group {{ $errors->has('iso-code') ? 'has-error' : '' }}">
{!! Form::label('iso-code',Lang::get('lang.iso-code')) !!}
{!! Form::text('iso-code',null,['placeholder'=>'en','class' => 'form-control']) !!}
{!! $errors->first('iso-code', '<spam class="help-block" style="color:red">:message</spam>') !!}
</div>
</div>
<div class="row">
<div class="col-xs-4 form-group {{ $errors->has('File') ? 'has-error' : '' }}">
{!! Form::label('File',Lang::get('lang.file')) !!}&nbsp
<div class="btn bg-olive btn-file" style="color:blue"> {!! Lang::get('lang.upload_file') !!}
{!! Form::file('File') !!}
</div>
{!! $errors->first('File', '<spam class="help-block" style="color:red">:message</spam>') !!}
</div>
</div>
</div>
@endif
@if(Session::has('errors'))
<?php //dd($errors); ?>
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>{!! Lang::get('lang.alert') !!}!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<br/>
@if($errors->first('language-name'))
<li class="error-message-padding">{!! $errors->first('language-name', ':message') !!}</li>
@endif
@if($errors->first('iso-code'))
<li class="error-message-padding">{!! $errors->first('iso-code', ':message') !!}</li>
@endif
@if($errors->first('File'))
<li class="error-message-padding">{!! $errors->first('File', ':message') !!}</li>
@endif
</div>
@endif
<div class="row">
<!-- username -->
<div class="col-xs-4 form-group {{ $errors->has('language-name') ? 'has-error' : '' }}">
{!! Form::label('language-name',Lang::get('lang.language-name')) !!} <span class="text-red"> *</span>
{!! Form::text('language-name',null,['placeholder'=>'English','class' => 'form-control']) !!}
</div>
<div class="col-xs-4 form-group {{ $errors->has('iso-code') ? 'has-error' : '' }}">
{!! Form::label('iso-code',Lang::get('lang.iso-code')) !!} <span class="text-red"> *</span>
{!! Form::text('iso-code',null,['placeholder'=>'en','class' => 'form-control']) !!}
</div>
</div>
<div class="row">
<div class="col-xs-4 form-group {{ $errors->has('File') ? 'has-error' : '' }}">
{!! Form::label('File',Lang::get('lang.file')) !!} <span class="text-red"> *</span>&nbsp
<div class="btn bg-olive btn-file" style="color:blue"> {!! Lang::get('lang.upload_file') !!}
{!! Form::file('File') !!}
</div>
</div>
</div>
</div>
<div class="box-footer">
{!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
</div>
</div>
@stop

View File

@@ -12,7 +12,6 @@ active
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@@ -23,7 +22,6 @@ class="active"
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
@@ -33,29 +31,28 @@ class="active"
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{{ Lang::get('lang.language') }}</h2><span class="pull-right"><a href="{{route('download')}}" title="click here to download template file" class="btn btn-primary"><i class="fa fa-download"></i> {{Lang::get('lang.download')}} </a> <a href="{{route('add-language')}}" class="btn btn-primary "><i class="fa fa-plus"></i> {{Lang::get('lang.add')}}</a></span>
</div>
<div class="box-body">
<!-- check whether success or not -->
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}} @if(Session::has('link'))<a href="{{url(Session::get('link'))}}">{{Lang::get('lang.enable_lang')}}</a> @endif
</div>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
{!! Datatable::table()
->addColumn(Lang::get('lang.language'),Lang::get('lang.iso-code'),Lang::get('lang.status'),Lang::get('lang.Action')) // these are the column headings to be shown
->setUrl(route('getAllLanguages')) // this is the route where data will be retrieved
->render() !!}
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}} @if(Session::has('link'))<a href="{{url(Session::get('link'))}}">{{Lang::get('lang.enable_lang')}}</a> @endif
</div>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
{!! Datatable::table()
->addColumn(Lang::get('lang.language'),Lang::get('lang.iso-code'),Lang::get('lang.status'),Lang::get('lang.Action')) // these are the column headings to be shown
->setUrl(route('getAllLanguages')) // this is the route where data will be retrieved
->render() !!}
</div>
</div>
@stop