<input type="hidden" id="fileid" value="{$file.id}"/>
<table class="table table-bordered table-black">
    <thead>
        <tr>
            <th>#</th>
            <th>الملف</th>
            <th>رفع/عرض</th>
            <th>ملاحظات</th>
            <th>تاريح الرفع</th>
            <th>مستخدم الرفع</th>
        </tr>
    </thead>
    <tbody>
        <tr {if !$file.buybillfile} style="background-color: #f8b8b8;"{/if}>
            <td>1</td>
            <td>supplier contract</td>
            <td>
                <input type="file" name="buybillfile" id="buybillfile" class="form-control updateFiles" value="استعراض"/>
                {if $file.buybillfile}<a href="{$hosturl}/upload/shippingFiles/{$file.buybillfile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="buybillnotes" id="buybillnotes">{$file.buybillnotes}</textarea></td>
            <td><span id="buybillDate">{$file.buybilldate}</span></td>
            <td><span id="buybillUser">{$file.buybillusername}</span></td>
        </tr>
        <tr {if !$file.performafile} style="background-color: #f8b8b8;"{/if}>
            <td>2</td>
            <td>performa invoice</td>
            <td>
                <input type="file" name="performafile" id="performafile" class="form-control updateFiles" value="استعراض"/>
                {if $file.performafile}<a href="{$hosturl}/upload/shippingFiles/{$file.performafile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="performanotes" id="performanotes">{$file.performanotes}</textarea></td>
            <td><span id="performaDate">{$file.performadate}</span></td>
            <td><span id="performaUser">{$file.performausername}</span></td>
        </tr>
        <tr {if !$file.cocfile} style="background-color: #f8b8b8;"{/if}>
            <td>3</td>
            <td>COC</td>
            <td>
                <input type="file" name="cocfile" id="cocfile" class="form-control updateFiles" value="استعراض"/>
                {if $file.cocfile}<a href="{$hosturl}/upload/shippingFiles/{$file.cocfile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="cocnotes" id="cocnotes">{$file.cocnotes}</textarea></td>
            <td><span id="cocDate">{$file.cocdate}</span></td>
            <td><span id="cocUser">{$file.cocusername}</span></td>
        </tr>
        <tr {if !$file.finalbillfile} style="background-color: #f8b8b8;"{/if}>
            <td>4</td>
            <td>final invoice</td>
            <td>
                <input type="file" name="finalbillfile" id="finalbillfile" class="form-control updateFiles" value="استعراض"/>
                {if $file.finalbillfile}<a href="{$hosturl}/upload/shippingFiles/{$file.finalbillfile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="finalbillnotes" id="finalbillnotes">{$file.finalbillnotes}</textarea></td>
            <td><span id="finalbillDate">{$file.finalbilldate}</span></td>
            <td><span id="finalbillUser">{$file.finalbillusername}</span></td>
        </tr>
        <tr {if !$file.customevalfile} style="background-color: #f8b8b8;"{/if}>
            <td>5</td>
            <td>MRN</td>
            <td>
                <input type="file" name="customevalfile" id="customevalfile" class="form-control updateFiles" value="استعراض"/>
                {if $file.customevalfile}<a href="{$hosturl}/upload/shippingFiles/{$file.customevalfile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="customevalnotes" id="customevalnotes">{$file.customevalnotes}</textarea></td>
            <td><span id="customevalDate">{$file.customevaldate}</span></td>
            <td><span id="customevalUser">{$file.customevalusername}</span></td>
        </tr>
        <tr {if !$file.warehousefile} style="background-color: #f8b8b8;"{/if}>
            <td>6</td>
            <td>Exit confirmation</td>
            <td>
                <input type="file" name="warehousefile" id="warehousefile" class="form-control updateFiles" value="استعراض"/>
                {if $file.warehousefile}<a href="{$hosturl}/upload/shippingFiles/{$file.warehousefile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="warehousenotes" id="warehousenotes">{$file.warehousenotes}</textarea></td>
            <td><span id="warehouseDate">{$file.warehousedate}</span></td>
            <td><span id="warehouseUser">{$file.warehouseusername}</span></td>
        </tr>
        <tr {if !$file.endrosementfile} style="background-color: #f8b8b8;"{/if}>
            <td>7</td>
            <td>Bill of loading</td>
            <td>
                <input type="file" name="endrosementfile" id="endrosementfile" class="form-control updateFiles" value="استعراض"/>
                {if $file.endrosementfile}<a href="{$hosturl}/upload/shippingFiles/{$file.endrosementfile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="endrosementnotes" id="endrosementnotes">{$file.endrosementnotes}</textarea></td>
            <td><span id="endrosementDate">{$file.endrosementdate}</span></td>
            <td><span id="endrosementUser">{$file.endrosementusername}</span></td>
        </tr>
        <tr {if !$file.eurofile} style="background-color: #f8b8b8;"{/if}>
            <td>8</td>
            <td>Eur1</td>
            <td>
                <input type="file" name="eurofile" id="eurofile" class="form-control updateFiles" value="استعراض"/>
                {if $file.eurofile}<a href="{$hosturl}/upload/shippingFiles/{$file.eurofile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="euronotes" id="euronotes">{$file.euronotes}</textarea></td>
            <td><span id="euroDate">{$file.eurodate}</span></td>
            <td><span id="euroUser">{$file.eurousername}</span></td>
        </tr>
        <tr {if !$file.shippolicyfile} style="background-color: #f8b8b8;"{/if}>
            <td>9</td>
            <td>invoice for form4</td>
            <td>
                <input type="file" name="shippolicyfile" id="shippolicyfile" class="form-control updateFiles" value="استعراض"/>
                {if $file.shippolicyfile}<a href="{$hosturl}/upload/shippingFiles/{$file.shippolicyfile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="shippolicynotes" id="shippolicynotes">{$file.shippolicynotes}</textarea></td>
            <td><span id="shippolicyDate">{$file.shippolicydate}</span></td>
            <td><span id="shippolicyUser">{$file.shippolicyusername}</span></td>
        </tr>
        <tr {if !$file.model4file} style="background-color: #f8b8b8;"{/if}>
            <td>10</td>
            <td>form4</td>
            <td>
                <input type="file" name="model4file" id="model4file" class="form-control updateFiles" value="استعراض"/>
                {if $file.model4file}<a href="{$hosturl}/upload/shippingFiles/{$file.model4file}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="model4notes" id="model4notes">{$file.model4notes}</textarea></td>
            <td><span id="model4Date">{$file.model4date}</span></td>
            <td><span id="model4User">{$file.model4username}</span></td>
        </tr>
        <tr {if !$file.batchreleasefile} style="background-color: #f8b8b8;"{/if}>
            <td>11</td>
            <td>إفراج</td>
            <td>
                <input type="file" name="batchreleasefile" id="batchreleasefile" class="form-control updateFiles" value="استعراض"/>
                {if $file.batchreleasefile}<a href="{$hosturl}/upload/shippingFiles/{$file.batchreleasefile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="batchreleasenotes" id="batchreleasenotes">{$file.batchreleasenotes}</textarea></td>
            <td><span id="batchreleaseDate">{$file.batchreleasedate}</span></td>
            <td><span id="batchreleaseUser">{$file.batchreleaseusername}</span></td>
        </tr>
        <tr {if !$file.trafficnotifyfile} style="background-color: #f8b8b8;"{/if}>
            <td>12</td>
            <td>إخطار</td>
            <td>
                <input type="file" name="trafficnotifyfile" id="trafficnotifyfile" class="form-control updateFiles" value="استعراض"/>
                {if $file.trafficnotifyfile}<a href="{$hosturl}/upload/shippingFiles/{$file.trafficnotifyfile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="trafficnotifynotes" id="trafficnotifynotes">{$file.trafficnotifynotes}</textarea></td>
            <td><span id="trafficnotifyDate">{$file.trafficnotifydate}</span></td>
            <td><span id="trafficnotifyUser">{$file.trafficnotifyusername}</span></td>
        </tr>
        <tr {if !$file.saleagreementfile} style="background-color: #f8b8b8;"{/if}>
            <td>13</td>
            <td>المبايعة</td>
            <td>
                <input type="file" name="saleagreementfile" id="saleagreementfile" class="form-control updateFiles" value="استعراض"/>
                {if $file.saleagreementfile}<a href="{$hosturl}/upload/shippingFiles/{$file.saleagreementfile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="saleagreementnotes" id="saleagreementnotes">{$file.saleagreementnotes}</textarea></td>
            <td><span id="saleagreementDate">{$file.saleagreementdate}</span></td>
            <td><span id="saleagreementUser">{$file.saleagreementusername}</span></td>
        </tr>
        <tr {if !$file.taxinvoicefile} style="background-color: #f8b8b8;"{/if}>
            <td>14</td>
            <td>الفاتورة الضريبية</td>
            <td>
                <input type="file" name="taxinvoicefile" id="taxinvoicefile" class="form-control updateFiles" value="استعراض"/>
                {if $file.taxinvoicefile}<a href="{$hosturl}/upload/shippingFiles/{$file.taxinvoicefile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="taxinvoicenotes" id="taxinvoicenotes">{$file.taxinvoicenotes}</textarea></td>
            <td><span id="taxinvoiceDate">{$file.taxinvoicedate}</span></td>
            <td><span id="taxinvoiceUser">{$file.taxinvoiceusername}</span></td>
        </tr>
        <tr {if !$file.otherfile} style="background-color: #f8b8b8;"{/if}>
            <td>15</td>
            <td>مرفقات أخرى</td>
            <td>
                <input type="file" name="otherfile" id="otherfile" class="form-control updateFiles" value="استعراض"/>
                {if $file.otherfile}<a href="{$hosturl}/upload/shippingFiles/{$file.otherfile}" target="_blank" class="btn btn-success">عرض</a>{/if}
            </td>
            <td><textarea class="form-control updateNotes" name="othernotes" id="othernotes">{$file.othernotes}</textarea></td>
            <td><span id="otherDate">{$file.otherdate}</span></td>
            <td><span id="otherUser">{$file.otherusername}</span></td>
        </tr>
    </tbody>
</table>