{% extends 'template.html.twig' %}

{% block title %} New Tour Request - {{ parent() }}{% endblock %}

{% block body %}

  <!-- Title Start  -->
                        <div class="app-page-title">
                            <div class="page-title-wrapper">
                                <div class="page-title-heading">
                                    <div class="page-title-icon">
                                        <i class="pe-7s-menu icon-gradient bg-ripe-malin text-success">
                                        </i>
                                    </div>
                                    <div><h3>Tour Request</h3>
                                       
                                    </div>
                                </div>
								
                                <div class="page-title-actions">
                                   <div class="d-inline-block dropdown">
                                       <nav class="" aria-label="breadcrumb">
                                                    <ol class="breadcrumb">
                                                        <li class="breadcrumb-item"><a href="#">Home</a></li>
                                                        <li class="breadcrumb-item"><a href="{{ path('tour_request_index') }}">Tour Request List</a></li>
                                                        <li class="active breadcrumb-item" aria-current="page">Add Tour Request</li>
                                                    </ol>
                                                </nav>
                                    </div>
                                </div>   
								
							</div>
                        </div>    

						{% for message in app.flashes('notice') %}
                            
                            <div class="alert alert-info alert-dismissible">
                                <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
                                <strong>{{ message }}</strong> 
                            </div>
                        {% endfor %}  

                         {% for message in app.flashes('warning') %}                   
                            <div class="alert alert-danger alert-dismissible">
                                <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
                                <strong>{{ message }}</strong> 
                            </div>
                        {% endfor %}  	 

						<ul class="body-tabs body-tabs-layout tabs-animated body-tabs-animated nav">
                            
                            <li class="nav-item">
                                <a role="tab" class="nav-link active"  href="{{ path('tour_request_index') }}">
                                    <span><i class="fa fa-list"> Tour Request List</i></span>
                                </a>
                            </li>
                        </ul> <!-- Title End  --> 
						
						<!-- Tab Start  --> 
                        <div class="tab-content">
						
						    <!-- Table Tab Start  --> 
                            <div class="tab-pane tabs-animation fade show active" id="tab-content-0" role="tabpanel">
                                <div class="main-card mb-3 card">
                                    <div class="card-body"><h5 class="card-title">Create new Tour Request</h5>
                                    <div class="divider"></div> 
                                        {{ form_start(form) }} 
                                                                                
                                            <div class="form-row">
                                                <div class="col-md-5 mb-4">
                                                    {{ form_row(form.expenseType) }}
                                                </div>

                                                    <div class="col-md-1 mb-1">                                                    
                                                    
                                                </div>

                                                <div class="col-md-5 mb-4">
                                                    {{ form_row(form.expensePurpose) }}
                                                </div>

                                                    <div class="col-md-1 mb-1">
                                                    
                                                </div>
                                                    
                                            </div>

                                              <div class="form-row">
                                                <div class="col-md-5 mb-4">
                                                    {{ form_row(form.tourScope) }}
                                                </div>

                                                    <div class="col-md-1 mb-1">                                                    
                                                    
                                                </div>

                                                <div class="col-md-5 mb-4">
                                                   {{ form_row(form.placeVisit) }}
                                                </div>

                                                    <div class="col-md-1 mb-1">
                                                    
                                                </div>
                                                    
                                            </div>

                                            <div class="form-row">
                                                <div class="col-md-5 mb-4">
                                                    {{ form_row(form.expectVisit) }}
                                                </div>

                                                    <div class="col-md-1 mb-1">                                                    
                                                    
                                                </div>

                                                <div class="col-md-5 mb-4">
                                                   {{ form_row(form.startingDate) }}
                                                </div>

                                                    <div class="col-md-1 mb-1">
                                                    
                                                </div>                                                    
                                            </div>

                                            <div class="form-row">
                                                <div class="col-md-5 mb-4">
                                                    {{ form_row(form.endingDate) }}
                                                </div>

                                                    <div class="col-md-1 mb-1">                                                    
                                                    
                                                </div>

                                                <div class="col-md-5 mb-4">
                                                   {{ form_row(form.contactPhone) }}
                                                </div>

                                                    <div class="col-md-1 mb-1">
                                                    
                                                </div>                                                    
                                            </div>

                                            <div class="form-row">
                                                <div class="col-md-11 mb-12">
                                                    {{ form_row(form.contactAddress) }}
                                                </div>  
                                                <div class="col-md-1 mb-1">
                                                    
                                                </div>  
                                            </div>
                                            <br>
                                            
                                             <div class="form-row">
                                                <div class="col-md-11 mb-12">
                                                    {{ form_row(form.tourPurpose) }}
                                                </div>  
                                                <div class="col-md-1 mb-1">
                                                    
                                                </div>  
                                            </div>
                                            <br>
                                            {# <div class="form-row">
                                                <div class="col-md-11 mb-12">
                                                    {{ form_row(form.officialDuties) }}
                                                </div>  
                                                <div class="col-md-1 mb-1">
                                                    
                                                </div>      
                                            </div>
                                            <br> #}
                                             <div class="form-row">
                                                <div class="col-md-5 mb-4">
                                                    {{ form_row(form.transportationMode) }}
                                                </div>

                                                    <div class="col-md-1 mb-1">                                                    
                                                    
                                                </div>

                                                <div class="col-md-5 mb-4">
                                                   {{ form_row(form.advanceCurrency) }}
                                                </div>

                                                    <div class="col-md-1 mb-1">
                                                    
                                                </div>                                                    
                                            </div>

                                             <div class="form-row">
                                                <div class="col-md-5 mb-4">
                                                    {{ form_row(form.advanceAmount) }}
                                                </div>

                                                    <div class="col-md-1 mb-1">                                                    
                                                    
                                                </div>

                                                <div class="col-md-5 mb-4">
                                                   
                                                </div>

                                                    <div class="col-md-1 mb-1">
                                                    
                                                </div>                                                    
                                            </div>
                                                                                                                                                        
                                            <div style="margin-top:25px;">
                                            <button class="btn btn-success"><i class="fa fa-save">{{ button_label|default(' Save') }}</i></button>

                                            {{ form_widget(form.createNew, {label: ' Save and create new', attr: {class: 'btn btn-primary'}}) }}    

                                            </div>
                                    {{ form_end(form) }}

                                                         
							
                                    </div>
                                </div>
								
                              
                            </div> <!-- Table Tab End  --> 
							
						
							
                        </div> <!-- Tab End  --> 

<div id="path_tour_request_expense_type" data-href="{{ path('app_expense_purpose_getexpensepurposebytype') }}"> </div>

{% endblock %}
