{literal}
<style>
    #playStationDiv img {
        width: 61px;
        height: 59px;
        margin-left: -19px;
    }

    #playStationText {
        background-color: #363636;
        color: white;
        padding: 8px;
        padding-right: 18px;
        border-radius: 10px;
        vertical-align: sub;
    }

    .glowing-border {
        outline: none;
        border-color: #363636;
        box-shadow: 0 0 12px #0000e4; //#000
    }

    .glowing-border-rounded {
        outline: none;
        border-color: #363636;
        box-shadow: 0 0 12px #0000e4; //#000
        border-radius: 40px;
    }

    .button-print {
        position: absolute;
        bottom: 0;
        margin: 20px 0 0;
        background-color: #fff;
        right: 0;
        height: 42px;
        width: 100%;
        padding-top: 11px;

    }

    .button-print a {
        margin-top: 20px;
    }
</style>
{/literal}
<div class="row">
    <div class="col-md-12">
        <input type="hidden" id="design" value="new" />
        <!-- BEGIN EXAMPLE TABLE PORTLET-->
        <div class="well well-lg wall-cgpadding resturant p0 m0 ">
            <!----Start Title Table------>

            <div class="portlet-title ">
                <div class="caption p5">
                    <img src="{$path}/assets/img/resturant/logo.png">
                    <span class="caption-subject font  ">الفاتورة </span>
                    <!--<a>
                     <img src="../views/default/assets/img/resturant/exit.png" class="exit-icon" >
                    </a>-->
                    <div class="logbutton pull-right">
                        {if $Usergroupdata->restaurantplaystationpalyBtn == 1}
                        <a href="restaurantplaystationpaly.php" class=" btn-primary mgtp3 linkpad">حجز البلاى ستيشن </a>
                        <span class="">&nbsp;</span>
                        {/if}
                        {if $Usergroupdata->homePageIcon == 1}
                        <a href="orderdeliveryreport.php" class=" btn-primary mgtp3 linkpad">تقرير سائق دليفرى</a> <span
                            class="">&nbsp;</span>
                        <a href="orderstatusreport.php" class=" btn-primary mgtp3 linkpad">تقرير أوردرات الدليفرى</a>
                        <span class="">&nbsp;</span>
                        {/if}
                        <a href="savedailyController.php" class=" btn-primary mgtp3 linkpad">يومية الخزنة </a> <span
                            class="">&nbsp;</span>
                        <!--a  href="#" class=" btn-primary mgtp3 linkpad">إضافة فاتورة </a> <span class="">&nbsp;</span-->
                        <a href="logout.php" class=" btn-danger mgtp3 linkpad">خروج </a> <span class="">&nbsp;</span>
                        {if $Usergroupdata->homePageIcon == 1}
                        <a href="index.php"><img src="{$path}/assets/img/whieHomePage.jpg"
                                style="height: 22px;width: 22px" /></a> <span class="">&nbsp;</span>
                        {/if}
                    </div>
                </div>
            </div>
            <div class="">
                <div class="caption">
                    {foreach $restaurantorderlast20 as $last20}
                    <a href="sellbillController.php?do=showDetail&sellbillid={$last20.sellBillId}"
                        class="dropdown-item btn btn-danger" target="_blank">{$last20.sellBillId}</a>
                    {/foreach}
                </div>
            </div>

            <div class="portlet-body ">
                <!--======================Start home-screen=====================-->
                <div class="body_res">
                    <div class="row">

                        <!---start product-menu-->
                        <div class=" col-md-4 col-xs-3 pL5">
                            <div class="menu-category">
                                <div class="row">

                                    <div class="col-xs-12">
                                        <form class="search-form search-form-expanded search-menu">
                                            <div class="input-group">
                                                <input type="text" class="form-control input-sm" placeholder="بحث"
                                                    name="query" id="query">

                                            </div>
                                            <input type="hidden" name="groupPerDiscount" id="groupPerDiscount"
                                                value="{$Usergroupdata->percentageDiscount}" />
                                        </form>
                                    </div>
                                    <div class="col-xs-12">
                                        <div class="main-menu parent-menu">
                                            <h4> القائمه الرئيسيه</h4>

                                            <ul id="catDiv">

                                            </ul>
                                        </div>
                                    </div>

                                    <div class="col-xs-12">
                                        <div class="category-menu">
                                            <img src="{$path}/assets/img/resturant/prev.png" class="prev-icon"
                                                style="margin-top: 10px;">
                                            <h4 class="head-icon prev-icon" style="display: inline-block;"> الاصناف
                                            </h4>
                                            <div class="clearfix"></div>
                                            <div class="category-menu-scroll" id="foodDiv">

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <!---End product-menu--->


                        <!---start product-menu-->

                        <div class="col-md-8 col-xs-9">
                            <div class="product-menu">
                                <div class="row">

                                    <div class=" col-xs-10" style="padding-right: 0;padding-left: 0">
                                        <div class="detail-order">
                                            <form id="spform" class="nameToBeChecked"
                                                action="branchRequestController.php?do=add" method="post">
                                                <div class="main-menu orderDetails">
                                                    <div class="order-head">
                                                        <h4>تفاصيل الطلب</h4>
                                                        <input type="hidden" name="productItr" id="itr" value="0" />
                                                    </div>
                                                    <div>
                                                        {if $allBranch || $branchData.branchName}
                                                        <div class="form-group col-md-12">
                                                            <label class="col-lg-3 control-label">الفرع </label>
                                                            <div class="col-lg-8">
                                                                <span>
                                                                    {if $allBranch}
                                                                    <select name="branchid" id="branchid"
                                                                        data-placeholder="اختر " class="select2 wdt100">
                                                                        <option value="-1">اختر</option>
                                                                        {foreach $allBranch as $branch}
                                                                        <option value="{$branch.branchId}">
                                                                            {$branch.branchName}</option>
                                                                        {/foreach}
                                                                    </select>
                                                                    {else}
                                                                    {$branchData.branchName}
                                                                    <input type="hidden" name="branchid"
                                                                        value="{$branchData.branchId}" />
                                                                    {/if}
                                                                </span>
                                                            </div>
                                                        </div>
                                                        {/if}
                                                        <!-- =================================================   -->
                                                        <div class="form-group col-md-12">
                                                            <label class="col-lg-3 control-label">المخزن </label>
                                                            <div class="col-lg-8">
                                                                {if $searchinonestore neq 0}
                                                                <input type="hidden" name="storeId" id="storeId"
                                                                    value="{$storeid}">
                                                                {$storedef->storeName}
                                                                {else}
                                                                <select class="select2 wdt100" name="storeId"
                                                                    id="storeId">
                                                                    <option value="-1">اختر مخزن</option>
                                                                    {foreach $storeData as $store}
                                                                    <option value="{$store->storeId}" {if $store->
                                                                        storeId eq $smarty.session.storeid} selected
                                                                        {/if}>{$store->storeName}</option>
                                                                    {/foreach}
                                                                </select>
                                                                {/if}
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="table-order scroll">
                                                        <table class="table" width="100%">
                                                            <thead>
                                                                <tr>
                                                                    <th style="width:5%">#</th>
                                                                    <th style="width:35%">الصــــــــنف</th>
                                                                    <th>الكميه الحالية</th>
                                                                    <th>العدد المطلوب</th>
                                                                    <th style="width:20%"> تعليق</th>
                                                                </tr>
                                                            </thead>
                                                            <tbody id="orderTBody">

                                                            </tbody>
                                                        </table>
                                                    </div>
                                                    <div class="clearfix"></div>
                                                    <div class="button-print">
                                                        <button type="submit" class="btn btn-primary pull-left" id="spbutton">حفظ</button>
                                                    </div>
                                                    <div class="clearfix"></div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
                <!--======================End home-screen=====================-->

            </div>

        </div>
    </div>
</div>