Initial code of commit

This commit is contained in:
sujitprasad
2015-05-01 13:33:56 +05:30
parent 16ea6e1984
commit ef834c58dc
1332 changed files with 141189 additions and 0 deletions

View File

@@ -0,0 +1,105 @@
@extends('themes.default1.layouts.agentblank')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('user')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(['action'=>'Agent\UserController@store','method'=>'post']) !!}
<div class="box box-primary">
<div class="content-header">
<h4>Create {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
<!-- Email Address : Email : Required -->
<div class="row">
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::email('email',null,['class' => 'form-control']) !!}
</div>
<!-- Full Name : Text : Required-->
<div class="col-xs-4 form-group {{ $errors->has('full_name') ? 'has-error' : '' }}">
{!! Form::label('full_name',Lang::get('lang.full_name')) !!}
{!! $errors->first('full_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('full_name',null,['class' => 'form-control']) !!}
</div>
<!-- Phone Number : Text : -->
<div class="col-xs-4 form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
{!! Form::label('phone',Lang::get('lang.phone')) !!}
{!! $errors->first('phone', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Internal Notes : Textarea -->
<div class="form-group">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control']) !!}
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->
@stop
@section('FooterInclude')
@stop
<!-- /content -->

View File

@@ -0,0 +1,105 @@
@extends('themes.default1.layouts.agentblank')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('user')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::model($users,['url'=>'user/'.$users->id,'method'=>'PATCH']) !!}
<div class="box box-primary">
<div class="content-header">
<h4>{{Lang::get('lang.edit')}} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
<!-- Email Address : Email : Required -->
<div class="row">
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::email('email',null,['class' => 'form-control']) !!}
</div>
<!-- Full Name : Text : Required-->
<div class="col-xs-4 form-group {{ $errors->has('full_name') ? 'has-error' : '' }}">
{!! Form::label('full_name',Lang::get('lang.full_name')) !!}
{!! $errors->first('full_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('full_name',null,['disabled'=>'disabled','class' => 'form-control']) !!}
</div>
<!-- Phone Number : Text : -->
<div class="col-xs-4 form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
{!! Form::label('phone',Lang::get('lang.phone')) !!}
{!! $errors->first('phone', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Internal Notes : Textarea -->
<div class="form-group">
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control']) !!}
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->
@stop
@section('FooterInclude')
@stop
<!-- /content -->

View File

@@ -0,0 +1,125 @@
@extends('themes.default1.layouts.agentblank')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('user')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<!-- open a form -->
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.user')}}</h2><a href="{{route('user.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_user')}}</a></div>
<div class="box-body table-responsive no-padding">
<!-- check whether success or not -->
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<b>Success!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th width="100px">{{Lang::get('lang.name')}}</th>
<th width="100px">{{Lang::get('lang.status')}}</th>
<th width="100px">{{Lang::get('lang.created')}}</th>
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
<th width="100px">{{Lang::get('lang.action')}}</th>
</tr>
@foreach($users as $user)
<tr>
<td><a href="{{route('user.show', $user->id)}}"> {{$user -> full_name }}</a></td>
<td></td>
<td>{{$user -> created_at}}</td>
<td>{{$user -> updated_at}}</td>
<td>
{!! Form::open(['route'=>['user.destroy', $user->id],'method'=>'DELETE']) !!}
<div class="form-group">
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-star"></i> Delete',
['type' => 'submit',
'class'=> 'actions-line icon-trash',
'onclick'=>'return confirm("Are you sure?")'])
!!}
</div>
{!! Form::close() !!}
</td>
</tr>
@endforeach
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</section>
@section('FooterInclude')
@stop
@stop
<!-- /content -->
@stop
@section('FooterInclude')
@stop
<!-- /content -->

View File

@@ -0,0 +1,185 @@
@extends('themes.default1.layouts.blank')
@section('content')
<div class="row">
<div class="col-md-6">
{!! Form::model($user,['url'=>'agent-profile', 'method' => 'PATCH','files'=>true]) !!}
<div class="box box-primary">
<div class="content-header">
<h4>Profile {!! 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-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- fail message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('gender',Lang::get('lang.gender')) !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('gender','1',true) !!}{{Lang::get('lang.male')}}
</div>
<div class="col-xs-3">
{!! Form::radio('gender','0') !!}{{Lang::get('lang.female')}}
</div>
</div>
</div>
<div class="form-group">
{!! Form::label('email',Lang::get('lang.email_address')) !!}
<div>
{{$user->email}}
</div>
</div>
<div class="form-group {{ $errors->has('company') ? 'has-error' : '' }}">
{!! Form::label('company',Lang::get('lang.company')) !!}
{!! $errors->first('company', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('company',null,['class' => 'form-control']) !!}
</div>
<div class="row">
<div class="col-xs-3 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
{!! Form::label('ext',Lang::get('lang.ext')) !!}
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-9 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('profile_pic') ? 'has-error' : '' }}">
{!! Form::label('profile_pic',Lang::get('lang.profile_pic')) !!}
{!! $errors->first('profile_pic', '<spam class="help-block">:message</spam>') !!}
{!! Form::file('profile_pic') !!}
</div>
{!! Form::token() !!}
{!! Form::close() !!}
</div>
</div>
</div>
<div class="col-md-6">
{!! Form::model($user,['url'=>'agent-profile-password/'.$user->id , 'method' => 'PATCH']) !!}
<div class="box box-primary">
<div class="content-header">
<h4>Change Password {!! 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-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- fail message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="form-group has-feedback {{ $errors->has('old_password') ? 'has-error' : '' }}">
{!! Form::label('old_password',Lang::get('lang.old_password')) !!}
{!! Form::password('old_password',['placeholder'=>'Password','class' => 'form-control']) !!}
{!! $errors->first('old_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group has-feedback {{ $errors->has('new_password') ? 'has-error' : '' }}">
{!! Form::label('new_password',Lang::get('lang.new_password')) !!}
{!! Form::password('new_password',['placeholder'=>'New Password','class' => 'form-control']) !!}
{!! $errors->first('new_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group has-feedback {{ $errors->has('confirm_password') ? 'has-error' : '' }}">
{!! Form::label('confirm_password',Lang::get('lang.confirm_password')) !!}
{!! Form::password('confirm_password',['placeholder'=>'Confirm Password','class' => 'form-control']) !!}
{!! $errors->first('confirm_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
</div>
</div>
</div>
</div>
{!! Form::close() !!}
@stop

View File

@@ -0,0 +1,159 @@
@extends('themes.default1.layouts.agentblank')
@section('Users')
class="active"
@stop
@section('user-bar')
active
@stop
@section('user')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{{$users->full_name}}</h2></div>
<div class="row">
<div class="col-md-6">
<div class="col-xs-4 form-group">
<strong>{{Lang::get('lang.name')}}</strong>
</div>
<div class="col-xs-4">
<a href="{{route('user.edit', $users->id)}}"> {{$users -> full_name }}</a>
</div>
</div>
<div class="col-md-6">
<div class="col-xs-4 form-group">
<strong>{{Lang::get('lang.email')}}</strong>
</div>
<div class="col-xs-4">
{{$users -> email }}
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="col-xs-4 form-group">
<strong>{{Lang::get('lang.organization')}}</strong>
</div>
<div class="col-xs-4">
<a href="{{route('organizations.create')}}"> {{Lang::get('lang.create_organization')}}</a>
</div>
</div>
<div class="col-md-6">
<div class="col-xs-4 form-group">
<strong>{{Lang::get('lang.status')}}</strong>
</div>
<div class="col-xs-4">
<!-- todo -->
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="col-xs-4 form-group">
<strong>{{Lang::get('lang.created')}}</strong>
</div>
<div class="col-xs-4">
{{$users -> created_at}}
</div>
</div>
<div class="col-md-6">
<div class="col-xs-4 form-group">
<strong>{{Lang::get('lang.last_updated')}}</strong>
</div>
<div class="col-xs-4">
{{$users -> updated_at}}
</div>
</div>
</div>
</div>
@section('FooterInclude')
@stop
@stop
<!-- /content -->
@stop
@section('FooterInclude')
@stop
<!-- /content -->