|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /home/elvh3918/public_html/tenant/storage/framework/views/ |
<?php $__env->startSection('content-trans'); ?>
<div class="mb-2">
<div class="d-flex justify-content-between">
<div class="flex">
<select class="mr-2 bg-purple form-control <?php echo e(count($errors) == 0 ? '' : (count($errors->get('payment_id')) == 0 ? '' : 'is-invalid')); ?>" name="payment_id" id="payment_id" style="width: 204px;" required>
<option value="0,null" <?php echo e(old('payment_id') == "0,null" ? "selected" : "selected"); ?>>P/M: Cash</option>
<?php $__currentLoopData = $banks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($data->id); ?>,<?php echo e($data->model); ?>" <?php echo e(old('payment_id') == "$data->id,$data->model" ? "selected" : ($data->is_default == 1 ? "selected" : "")); ?>>
P/M: <?php echo e($data ? Illuminate\Support\Str::limit($data->name, 15) : "Cash"); ?>
</option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<select class="bg-purple form-control <?php echo e(count($errors) == 0 ? '' : (count($errors->get('pos_type')) == 0 ? '' : 'is-invalid')); ?>" name="pos_type" id="pos_type" style="width: 204px;" required>
<?php $__currentLoopData = $pos_type; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($data->name); ?>" <?php echo e(old('pos_type') == $data->name ? "selected" : ""); ?>>Type: <?php echo e($data->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div>
<button class="btn btn-danger mr-2" type="button" onclick='clearTableDetail("item")'>
<i class="fa fa-times"></i>
<span class="ml-2">Cancel</span>
</button>
<button class="btn btn-success mr-2" type="submit" onclick='buttonSpin("btn_save", "spinner-border spinner-border-sm")'>
<i id="btn_save" class="fa fa-save"></i>
<span class="ml-2">Save</span>
</button>
</div>
</div>
</div>
<div class="bg-light mb-2" style="height: 77vh; overflow: auto;">
<table class="table table-striped">
<thead class="thead-dark">
<tr>
<th scope="col" style="width: 50px" class="text-right">#</th>
<th scope="col">Items</th>
<th scope="col" style="width: 100px" class="text-right">Qty</th>
<th scope="col" style="width: 180px" class="text-right">Amount</th>
<th scope="col" style="width: 50px" class="text-center">#</th>
</tr>
</thead>
<tbody id="tbody-item">
<tr>
<th class="text-center align-middle" scope="col" colspan="5" style="height:45vh"><h1>No data record</h1></th>
</tr>
</tbody>
<tfoot>
<tr class="border-top">
<th scope="col" colspan="2">Total</th>
<th scope="col" class="text-right">
<input type="hidden" class="form-control" id="total_qty" name="total_qty" value=0 />
<span id="lbl_total_qty">0</span>
</th>
<th scope="col" class="text-right">
<input type="hidden" class="form-control" id="total_total" name="total_total" value=0 />
<span class="mr-1"><?php echo e($tenant['currency']->vw_currency_exhange_rates ? $tenant['currency']->vw_currency_exhange_rates->symbol : "#"); ?>.</span>
<span id="lbl_total_total">0</span>
</th>
<th scope="col"></th>
</tr>
<tr>
<th scope="col" colspan="3">Discount</th>
<th scope="col" class="text-right">
<input type="hidden" class="form-control" id="total_discount" name="total_discount" value=0 />
<span class="mr-1"><?php echo e($tenant['currency']->vw_currency_exhange_rates ? $tenant['currency']->vw_currency_exhange_rates->symbol : "#"); ?>.</span>
<span id="lbl_total_discount">0</span>
</th>
<th scope="col"></th>
</tr>
<tr>
<th scope="col" colspan="2">Charge</th>
<th scope="col" class="text-right">
<input type="hidden" class="form-control" id="total_charge" name="total_charge" value=<?php echo e($charge['rate']); ?> />
<span id="lbl_total_charge"><?php echo e(number_format($charge['rate'], 2, '.', ',')); ?>%</span>
</th>
<th scope="col" class="text-right">
<span class="mr-1"><?php echo e($tenant['currency']->vw_currency_exhange_rates ? $tenant['currency']->vw_currency_exhange_rates->symbol : "#"); ?>.</span>
<span id="lbl_total_charge_amount">0</span>
</th>
<th scope="col"></th>
</tr>
<tr>
<th scope="col" colspan="2">Vat</th>
<th scope="col" class="text-right">
<input type="hidden" class="form-control" id="total_vat" name="total_vat" value=<?php echo e($vat['rate']); ?> />
<span id="lbl_total_vat"><?php echo e(number_format($vat['rate'], 2, '.', ',')); ?>%</span>
</th>
<th scope="col" class="text-right">
<span class="mr-1"><?php echo e($tenant['currency']->vw_currency_exhange_rates ? $tenant['currency']->vw_currency_exhange_rates->symbol : "#"); ?>.</span>
<span id="lbl_total_vat_amount">0</span>
</th>
<th scope="col"></th>
</tr>
<tr>
<th scope="col" colspan="3">Grandtotal</th>
<th scope="col" class="text-right">
<input type="hidden" class="form-control" id="total_grandtotal" name="total_grandtotal" value=0 />
<span class="mr-1"><?php echo e($tenant['currency']->vw_currency_exhange_rates ? $tenant['currency']->vw_currency_exhange_rates->symbol : "#"); ?>.</span>
<span id="lbl_total_grandtotal">0</span>
</th>
<th scope="col"></th>
</tr>
</tfoot>
</table>
</div>
<div class="text-capitalize font-weight-bold p-2 d-flex align-items-center justify-content-center bg-success" style="height: 10vh; overflow: auto;">
<h1 class="mr-1"><?php echo e($tenant['currency']->vw_currency_exhange_rates ? $tenant['currency']->vw_currency_exhange_rates->symbol : "#"); ?>.</h1>
<h1 id="lbl_total_grandtotal2">0</h1>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-style-trans'); ?>
<style>
table {
border-collapse: collapse;
}
th,
td {
padding: 1rem;
}
thead,
tfoot {
background: #eee;
}
thead {
position: sticky;
top: 0;
border-bottom: 2px solid #ccc;
}
tfoot {
position: sticky;
bottom: 0;
border-top: 2px solid #ccc;
}
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-script-trans'); ?>
<script>
function clearTableDetail(type) {
if (confirm("Are you sure?") == false) {
return;
}
document.getElementById("tbody-" + type).innerHTML="";
var html="";
html +='<tr>';
html +='<th class="text-center align-middle" scope="col" colspan="5" style="height:45vh"><h1>No data record</h1></th>';
html +='</tr>';
$("#tbody-" + type).append(html);
calculateQty();
}
function resetTableDetail(type) {
var total_element = $(".rowCount" + type).length;
if (total_element == 0) {
var html="";
html +='<tr>';
html +='<th class="text-center align-middle" scope="col" colspan="5" style="height:45vh"><h1>No data record</h1></th>';
html +='</tr>';
$("#tbody-" + type).append(html);
}
calculateQty();
}
</script>
<?php $__env->stopSection(); ?><?php /**PATH /home/elvh3918/public_html/tenant/resources/views/content/trans/pos/partials/trans.blade.php ENDPATH**/ ?>