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

{% block title %}Details 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">Details</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 %}  	    
        <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_edit', {'id': tour_request.id}) }}">
                    <span><i class="fa fa-edit"> Edit</i></span>
                </a>
            </li>
            <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>
                <li class="nav-item">
                   {# {{ include('leave_application/_delete_form.html.twig') }} #}
               
            </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"> Details</h5>
                    
                    
                        <div class="table table-striped table-hover">
                        
                            <table class="mb-0 table">
                                
                                <tbody>

                               
                               <tr>
                                 <th width="25%">Type</th>
                                 <th width="3%">: </th>
                                 <td>{{ tour_request.expenseType.name }}</td>
                                </tr>
                                <tr>
                                    <th>Purpose</th>
                                    <th>: </th>
                                    <td>{{ tour_request.expensePurpose.name }}</td>
                                </tr>
                                <tr>
                                    <th>Submition Date</th>
                                    <th>: </th>
                                    <td>{{ tour_request.submitionDate ? tour_request.submitionDate|date('d-m-Y') : '' }}</td>
                                </tr>
                                <tr>
                                    <th>Tour Scope</th>
                                    <th>: </th>
                                    <td>{{ tour_request.tourScope }}</td>
                                </tr>
                                <tr>
                                    <th>
                                        Place to Visit</th>
                                    <th>: </th>
                                    <td>{{ tour_request.placeVisit }}</td>
                                </tr>
                                <tr>
                                    <th>Expect to Visit</th>
                                    <th>: </th>
                                    <td>{{ tour_request.expectVisit }}</td>
                                </tr>
                                <tr>
                                    <th>Tour Starting Date</th>
                                    <th>: </th>
                                    <td>{{ tour_request.startingDate ? tour_request.startingDate|date('d-m-Y H:i:s') : '' }}</td>
                                </tr>
                                <tr>
                                    <th>Tour Ending Date</th>
                                    <th>: </th>
                                    <td>{{ tour_request.endingDate ? tour_request.endingDate|date('d-m-Y H:i:s') : '' }}</td>
                                </tr>
                                <tr>
                                    <th>Contact Phone During Tour</th>
                                    <th>: </th>
                                    <td>{{ tour_request.contactPhone }}</td>
                                </tr>
                                <tr>
                                    <th>Contact Address During Tour</th>
                                    <th>: </th>
                                    <td>{{ tour_request.contactAddress }}</td>
                                </tr>
                                <tr>
                                    <th>Transportation Mode</th>
                                    <th>: </th>
                                    <td>{{ tour_request.transportationMode }}</td>
                                </tr>
                                <tr>
                                    <th>Purpose of the tour </th>
                                    <th>: </th>
                                    <td>{{ tour_request.tourPurpose }}</td>
                                </tr>
                                {# <tr>
                                    <th>Official Duties during tour</th>
                                    <th>: </th>
                                    <td>{{ tour_request.officialDuties }}</td>
                                </tr> #}
                                <tr>
                                    <th>Advance Currency</th>
                                    <th>: </th>
                                    <td>{{ tour_request.advanceCurrency }}</td>
                                </tr>
                                <tr>
                                    <th>Advance Amount</th>
                                    <th>: </th>
                                    <td>{{ tour_request.advanceAmount }}</td>
                                </tr>
                               
                                </tbody>
                            </table>
                        </div>
                                 
            
                    </div>
                </div>
                
                
            </div> <!-- Table Tab End  --> 
                                        
        </div> <!-- Tab End  --> 


{% endblock %}

