Ejemplo n.º 1
0
                    <h4><i class="icon fa fa-check"></i>Alert!</h4>
                    <div id="message-success1"></div>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-md-4">
                        </div>
                        <div class="col-md-6" id="assign_loader" style="display:none;">
                            <img src="{{asset("lb-faveo/dist/img/gifloader.gif")}}"><br/><br/><br/>
                        </div>
                    </div>
                    <div id="assign_body">
                        <p>{!! Lang::get('lang.please_select_an_user') !!}</p>
                        <select id="user" class="form-control" name="user">
<?php 
$org_heads = App\Model\helpdesk\Agent_panel\User_org::where('org_id', '=', $orgs->id)->get();
?>
                            <optgroup label="Select Organizations">
                                @foreach($org_heads as $org_head)
                                <?php 
$user_org_heads = App\User::where('id', '=', $org_head->user_id)->first();
?>
                                    <option  value="{{$user_org_heads->id}}">{!! $user_org_heads->user_name !!}</option>
                                @endforeach
                            </optgroup>
                        </select>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis4">{!! Lang::get('lang.close') !!}</button>
                    <button type="submit" class="btn btn-success pull-right" id="submt2">{!! Lang::get('lang.assign') !!}</button>
Ejemplo n.º 2
0
						@else
							<h3 class="">{{$users->user_name}}</h3>
						@endif
					</center>
				</div>
			</div>
			<div class="box-footer">
				<b>{{Lang::get('lang.email')}}</b>
				<a class="pull-right">
					{{$users->email }}
				</a>
			</div>
			<div class="box-footer">
					<div id="refresh-org">
					<?php 
$user_org = App\Model\helpdesk\Agent_panel\User_org::where('user_id', '=', $users->id)->first();
?>
						@if($user_org == null)
						<b>{!! Lang::get('lang.organization') !!}</b>

							<a href="" class="pull-right"  data-toggle="modal" data-target="#assign"><i class="fa fa-hand-o-right" style="color:orange;"> </i> {!! Lang::get('lang.assign') !!} </a>
							<a href="" data-toggle="modal" data-target="#create_org" class="pull-right"> {{Lang::get('lang.create')}} <b style="color:#000"> / </b>&nbsp; </a>
						@else
		<?php 
$org_id = $user_org->org_id;
$organization = App\Model\helpdesk\Agent_panel\Organization::where('id', '=', $org_id)->first();
?>
						<b>{!! Lang::get('lang.organization') !!}</b>
							<a href="{!! URL::route('organizations.show',$organization->id) !!}" class="pull-right">{!! $organization->name !!}</a>
						@endif