{% extends 'fos/base.html.twig' %}
{% block firstnav %}
{#{{ render(controller('App\\Admin\\AdminController::nav')) }}#}
{{ render(controller('App\\Parcels\\DefaultController::nav')) }}
{% endblock %}
{% block stylesheets %}
<style>
h5 {
font-family: "Amaranth", sans-serif;
}
</style>
{% endblock %}
{% block secondnav %}
<!-- Second Nav -->
<nav class="navbar-second navbar navbar-default navbar-static-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Brand -->
{% block current %}
<span class="navbar-brand" href="#"><i class="fa fa-dashboard"></i> Dashboard
{% if user_town %} [PARCELS FROM {{ user_town.station.stationName }}]{% endif %}
</span>
{% endblock %}
</div>
<div class="collapse navbar-collapse animated fadeIn" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav animated fadeIn">
{% block secondarylinkblock %}
{% endblock %}
</ul>
<ul class="nav navbar-nav navbar-right">
<li class=""><a></a></li>
{#<li><p class="navbar-text"></p></li>#}
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
{% endblock %}
{% block main %}
<div class="row">
<div class="col-md-3 col-md-3 col-sm-6 col-xs-12" style="margin: auto;">
<div class="panel dash text-center no-boder bg-color-red panel-warning">
<div class="panel-body">
<h5><i class="fa fa-plus-circle "></i> NEW PARCEL</h5>
</div>
<div class="panel-footer">
<a href="{{ path('new-parcel') }}">New Parcel</a>
</div>
</div>
</div>
{#<div class="col-md-3 col-md-3 col-sm-6 col-xs-12" style="margin: auto;">
<div class="panel dash text-center no-boder bg-color-red panel-success">
<div class="panel-body">
<h5><i class="fa fa-plus-circle"></i> LOADED PARCELS</>
</div>
<div class="panel-footer">
<a href="#">view</a>
</div>
</div>
</div>#}
<div class="col-md-3 col-md-3 col-sm-6 col-xs-12" style="margin: auto;">
<div class="panel dash text-center no-boder bg-color-red panel-success">
<div class="panel-body">
<h5><i class="fa fa-sign-out "></i> <i class="fa fa-truck "></i> OUTGOING DELIVERIES</h5>
</div>
<div class="panel-footer back-footer-green">
<a href="{{ path('all_out_going_parcels') }}">view</a>
</div>
</div>
</div>
<div class="col-md-3 col-md-3 col-sm-6 col-xs-12" style="margin: auto;">
<div class="panel dash text-center no-boder bg-color-red panel-default">
<div class="panel-body">
<h5><i class="fa fa-arrow-circle-down"></i> <i class="fa fa-truck"></i> INCOMING DELIVERIES</h5>
</div>
<div class="panel-footer">
<a href="{{ path('all_incoming_parcels') }}">view</a>
</div>
</div>
</div>
<div class="col-md-3 col-md-3 col-sm-6 col-xs-12" style="margin: auto;">
<div class="panel dash text-center no-boder bg-color-red panel-success">
<div class="panel-body">
<h5><i class="fa fa-arrow-circle-down"></i> <i class="fa fa-dot-circle-o"></i> UNCOLLECTED PARCELS</h5>
</div>
<div class="panel-footer">
<a href="{{ path('all_received_parcels') }}">view</a>
</div>
</div>
</div>
<div class="col-md-3 col-md-3 col-sm-6 col-xs-12" style="margin: auto;">
<div class="panel dash text-center panel-default panel-body-noborder">
<div class="panel-body">
<h5><i class="fa fa-gift"></i> COLLECTED PARCELS</h5>
</div>
<div class="panel-footer">
<a href="{{ path('all_collected_parcels') }}">view</a>
</div>
</div>
</div>
<div class="col-md-3 col-md-3 col-sm-6 col-xs-12" style="margin: auto;">
<div class="panel dash text-center panel-default panel-body-noborder">
<div class="panel-body">
<h5><i class="fa fa-money-bill-alt"></i> DAILY TRANSACTIONS</h5>
</div>
<div class="panel-footer">
<a href="{{ path('daily_parcel_transactions') }}">view</a>
</div>
</div>
</div>
<div class="col-md-3 col-md-3 col-sm-6 col-xs-12" style="margin: auto;">
<div class="panel dash text-center panel-default panel-body-noborder">
<div class="panel-body">
<h5><i class="fa fa-arrow-circle-down"></i> AT OFFICE</h5>
</div>
<div class="panel-footer">
<a href="{{ path('all_at_office_parcels') }}">view</a>
</div>
</div>
</div>
</div>
{# {% if is_granted('ROLE_BOS_USER') and is_granted('ROLE_CLERK') %}#}
<div class="row" >
<div class="col-lg-offset-4 col-lg-4" style="margin: auto;">
<fieldset>
<legend>Search Waybill</legend>
{{ form_start(form) }}
<table>
<tbody>
<tr>
<td>
<label for="waybill">waybill</label>
{{ form_widget(form.waybill,{'attr':{'class':'form-control' }} ) }}
</td>
<td style="padding-left: 24px; padding-top: 35px;">
<input type="submit" value="Search" class="btn btn-success">
</td>
</tr>
<tr>
<td>
<div class="invalid-feedback">
{{ form_errors(form.waybill) }}
</div>
</td>
</tr>
</tbody>
</table>
{{ form_end(form) }}
</fieldset>
</div>
</div>
{# {% endif %}#}
{% endblock %}