@extends('layouts.cartMaster') @section('getStarted') @stop @section('linkscript') {{ HTML::script('js/profils.js?'.filemtime('js/profils.js')) }} @stop @section('myscript') var profils = []; profils = null; var profilValue = "id"; $(document).ready( function () { @if($agent->account->code == 'HUN') $("[name='agent_ext']").select2({ ajax: { url: '/account/getAgentList', dataType: 'json', data: function(params){ var queryParameters = { term: params.term } return queryParameters; }, processResults: function(data){ return{ results: data }; }, cache: true, success: function(e){ $('.select2-selection__rendered').unbind('mouseenter mouseleave'); $('.select2-selection__rendered').hover(function () { $(this).removeAttr('title'); }); } }, placeholder: '{{Lang::get('format.search')}}', minimumInputLength: 3, allowClear: true }); $('.select2-selection__rendered').removeAttr('title'); $("[name='agent_ext']").change(function(){ $('.select2-selection__rendered').removeAttr('title'); }); @endif $( "#search_firstname" ).keyup(function() { filterProfil(); }); $( "#search_lastname" ).keyup(function() { filterProfil(); }); $( "#search_email" ).keyup(function() { filterProfil(); }); $( "#search_phone" ).keyup(function() { filterProfil(); }); }); @stop @section('pageContent') {{ Form::open(array('url' => 'bookings/add')) }} @if(!$agent->int_ext && count($agent->account->profil) > 0 && $agent->account->code != 'HUN')
{{ Form::label('profil_id', Lang::get('booking.associateBookingProfile')) }}

@endif
{{ Form::label('title', Lang::get('booking.nameNewFolder')) }} {{ Form::text('title', '', array('size' => '64', 'class' => 'form-control' , 'autofocus')) }}
@if(!$agent->int_ext && ($agent->account->code == 'HUN' || count($ext) > 1))
{{ Form::label('associate', Lang::get('booking.associateBooking')) }} {{ Form::select('agent_ext', $ext , null , array('class' => 'form-control' )) }}
@endif {{ Form::hidden('status', 'QT') }} {{ Form::hidden('bookdate', date('Y-m-d H:i:s')) }} {{ Form::hidden('agent_id', Auth::id()) }} {{ Form::submit(Lang::get('booking.create'), array('class' => 'btn btn-primary')) }} {{ Form::close() }} @stop