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

{% block title %}Details Vendor - Cross World Group{% 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>Vendor</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('vendor_index') }}">Vendor List</a></li>
                                        <li class="active breadcrumb-item" aria-current="page">Details</li>
                                    </ol>
                                </nav>
                    </div>
                </div>   
                
            </div>
        </div>    
            
        <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('vendor_edit', {'id': vendor.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('vendor_index') }}">
                    <span><i class="fa fa-list"> Vendor List</i></span>
                </a>
            </li>
                <li class="nav-item">
                   {{ include('vendor/_delete_form.html.twig') }}
                {# <a role="tab" class="nav-link"  href="{{ path('company_delete', {'id': company.id}) }}" onclick="return confirm('Are you sure you want to permanent delete this item?');">
                    <span><i class="fa fa-trash-o"> Delete</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">{{ vendor.name }} Details</h5>
                    
                    
                        <div class="table table-striped table-hover">
                        
                            <table class="mb-0 table">
                                
                                <tbody>
                                         
                                                          
                                 <tr>
                                    <th width="15%">Vendor Name</th>
                                     <th width="3%">: </th>
                                    <td>{{ vendor.name }}</td>
                                </tr>
                                <tr>
                                    <th>Address</th>
                                     <th width="3%">: </th>
                                    <td>{{ vendor.address }}</td>
                                </tr>

                                 <tr>
                                    <th>Mobile No.</th>
                                     <th width="3%">: </th>
                                    <td>{{ vendor.mobileno }}</td>
                                </tr>
                                <tr>
                                    <th>Email</th>
                                     <th width="3%">: </th>
                                    <td>{{ vendor.email }}</td>
                                </tr>
                               
                                </tbody>
                            </table>
                        </div>
                                            
            
                    </div>
                </div>
                
                
            </div> <!-- Table Tab End  --> 
                                        
        </div> <!-- Tab End  --> 


{% endblock %}



{# {% extends 'base.html.twig' %}

{% block title %}Vendor{% endblock %}

{% block body %}
    <h1>Vendor</h1>

    <table class="table">
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ vendor.id }}</td>
            </tr>
            <tr>
                <th>Name</th>
                <td>{{ vendor.name }}</td>
            </tr>
            <tr>
                <th>Address</th>
                <td>{{ vendor.address }}</td>
            </tr>
            <tr>
                <th>Mobileno</th>
                <td>{{ vendor.mobileno }}</td>
            </tr>
            <tr>
                <th>Email</th>
                <td>{{ vendor.email }}</td>
            </tr>
            <tr>
                <th>Remarks</th>
                <td>{{ vendor.remarks }}</td>
            </tr>
        </tbody>
    </table>

    <a href="{{ path('vendor_index') }}">back to list</a>

    <a href="{{ path('vendor_edit', {'id': vendor.id}) }}">edit</a>

    {{ include('vendor/_delete_form.html.twig') }}
{% endblock %} #}
