
<h2 class="title" style="margin-top: 50px;">Can {$location}{$no} </h2>

<div class="table-responsive">
    <input type="hidden" id="location" value="{$location}"/>
    <input type="hidden" id="no" value="{$no}"/>

    <table class="table custom-table table-bordered">
        <thead>
            <tr style="background-color: #ffffff;">
                <th style="background-color: unset;"></th>
                {for $col=1 to 9}
                <th style="background-color: unset;">{$col}</th>
                {/for}
            </tr>
        </thead>
        <tbody>
            {for $row =1 to 9}
            {capture assign=colLetter}color{$row}_letter{/capture}
            {capture assign=colName}color{$row}_name{/capture}


            <tr style=" background-color: {$tanks_general->$colName} !important; ">
                <th scope="row">{$tanks_general->$colLetter}</th>
                {for $col=1 to 9}
                <td>
                    <table class="table-child">
                        <tr style="background-color: unset;">
                            {for $inner =1 to 10 }
                            {assign var="name" value="`$location`_`$no`_`$row`_`$col`_`$inner`"}
                            <td  data-row="{$row}" data-col="{$col}" data-inner="{$inner}"  data-content="hhhhh  uuuuu"
                                 {if in_array($name, $patCells)} class="reserveMeCell cellPop"  
                                 {elseif in_array($name, $otherCells)} class="reserveOtherCell cellPop"  
                                 {else} class="emptyCell cellPop"  
                                 {/if}   ></td>
                            {if  $inner == 5 }
                        </tr>
                        <tr style="background-color: unset;">
                            {/if}
                            {/for}
                        </tr>
                    </table>
                </td>
                {/for}
            </tr>
            {/for}
        </tbody>
    </table>
</div>

{if $preview != 1 }
<button type="button" class="btnCAn btn-primary" style=" width: 49%;" id="saveTankLocation" >
    Save Can {$location}{$no}  changes</button>
{/if}