<style>
    .nodata{
        background-color: #72B4EC;
        color: white;
        border-radius: 13px;
        margin: 14px;
        font-size: 24px;
        text-align: center;
        padding: 5px;
    }

</style>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">بصريات</a></li>
            <li><a href="#">النقل</a></li>
            <!--li class="active">نقل الى الورشة</li-->
        </ol>

        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title">النقل</h3>
            </div>
            <div class="panel-body">
                <!-- Table -->
                <table class="table table-black">
                    <thead>
                        <tr>
                            <th>رقم المسلسل</th>
                            <th>اسم العميل</th>
                            <th>التاريخ</th>
                            <th>عدد المنتجات</th>
                            <th>أسماء المنتجات</th>
                            <th class="hidden-print">تفاصيل</th>
                        </tr>
                    </thead>
                    <tbody>
                        {assign var=i value=1}
                        {foreach $orderbills as $data}
                        <tr>
                            <td>{$i}</td>
                            <td>{$data->clientname}</td>
                            <td>{$data->billdate}</td>
                            <td>{$data->billstatus}</td>
                            <td>{$data->deleted}</td>
                            <td class="hidden-print">  <a href="bills.php?do=details&id={$data->id}" target="_blank" type="button" class="btn btn-default btn-lg notesicon"></a>
                            </td>
                        </tr>
                        {assign var=i value=$i+1}
                        {/foreach}

                    </tbody>

                </table>
                <div class="clearfix"></div>
                <br/>
                <div class="clearfix"></div>

                <div class="panel panel-default goo">
                    <div class="panel-heading">
                        <h3 class="panel-title">بيانات الذهاب</h3>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            {if $order->driverId > 0}
                            <div class="col-lg-6 goo1" style="display: inline">
                                <div class="form-group col-lg-12">
                                    <label class="sr-only">الورشة</label>
                                    <select class="select2 wdt300" id="workshop" name="workshop" disabled>
                                        <option value="-1"></option>
                                        {foreach $workshops as $data}
                                        <option value="{$data->id}" {if $data->id == $order->workshopId}selected="selected"{/if}>{$data->name}</option>
                                        {assign var=i value=$i+1}
                                        {/foreach}
                                    </select>
                                </div>
                                <div class="clearfix"></div>
                                <div class="form-group col-lg-12">
                                    <label class="sr-only">السائق</label>
                                    <select class="select2 wdt300" id="driver" name="driver" disabled>
                                        <option value="-1"></option>
                                        {foreach $drivers as $data}
                                        <option value="{$data->userid}" {if $data->userid == $order->driverId}selected="selected"{/if}>{$data->employeename}</option>
                                        {assign var=i value=$i+1}
                                        {/foreach}
                                    </select>
                                </div>
                                <div class="clearfix"></div>
                                <div class="form-group col-lg-12">
                                    <label class="sr-only">تاريخ التسليم</label>
                                    <input type="text" class="form-control"  data-date-format="yyyy-mm-dd" name="deliveryDate" value="{$order->deliverWorkshopDate}" disabled>
                                </div>
                            </div>
                            {if $order->deliverId > 0}
                            <div class="col-lg-6 goo2"  style="display: inline">
                                <div class="form-group col-lg-12">
                                    <label class="sr-only">عامل التوصيل</label>
                                    <select class="select2 wdt300" disabled>
                                        <option value="-1"></option>
                                        {foreach $deliveryWorkers as $data}
                                        <option value="{$data->userid}"{if $data->userid == $order->deliverId}selected="selected"{/if}>{$data->employeename}</option>
                                        {assign var=i value=$i+1}
                                        {/foreach}
                                    </select>
                                </div>

                                <div class="form-group col-lg-12">
                                    <label class="sr-only">تاريخ التسليم للورشة</label>
                                    <input type="text" class="form-control" value="{$order->recieveWorkshopDate}" disabled>
                                </div>
                            </div>
                            {/if}
                            {else}
                            <div class="nodata">عفوا لا يوجد بيانات</div>
                            {/if}
                            <div class="clearfix"></div>
                            <br/>
                        </div>
                    </div>
                </div>
                <div class="panel panel-default panel-m goo">
                    <div class="panel-heading">
                        <h3 class="panel-title">بيانات العودة</h3>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            {if $order->driverIdBack > 0}
                            <div class="col-lg-6 back1"  style="display: inline">
                                <div class="form-group col-lg-12">
                                    <label class="sr-only">السائق</label>
                                    <select class="select2 wdt300" id="driver" name="driver" disabled>
                                        <option value="-1"></option>
                                        {foreach $drivers as $data}
                                        <option value="{$data->userid}" {if $data->userid == $order->driverIdBack}selected="selected"{/if}>{$data->employeename}</option>
                                        {assign var=i value=$i+1}
                                        {/foreach}
                                    </select>
                                </div>
                                <div class="clearfix"></div>
                                <div class="form-group col-lg-12">
                                    <label class="sr-only">تاريخ التسليم</label>
                                    <input type="text" class="form-control"  value="{$order->deliverBranchDate}" disabled>
                                </div>
                            </div>
                            {if $order->deliverIdBack > 0}
                            <div class="col-lg-6 goo2"  style="display: inline">
                                <div class="form-group col-lg-12">
                                    <label class="sr-only">عامل التوصيل</label>
                                    <select class="select2 wdt300" disabled>
                                        <option value="-1"></option>
                                        {foreach $deliveryWorkers as $data}
                                        <option value="{$data->userid}"{if $data->userid == $order->deliverIdBack}selected="selected"{/if}>{$data->employeename}</option>
                                        {assign var=i value=$i+1}
                                        {/foreach}
                                    </select>
                                </div>

                                <div class="form-group col-lg-12">
                                    <label class="sr-only">تاريخ التسليم للفرع</label>
                                    <input type="text" class="form-control" value="{$order->recieveBranchDate}" disabled>
                                </div>
                            </div>
                            {/if}
                            {else}
                            <div class="nodata">عفوا لا يوجد بيانات</div>
                            {/if}
                            <div class="clearfix"></div>
                            <br/>
                        </div>
                    </div>
                </div>

                <div class="clearfix"></div>
                <br/>
                <div class="clearfix"></div>
                </form>
            </div>
        </div>


    </div><!--container-->
</div><!--row-->

