<!DOCTYPE html>
<html>

<head>
    <title>Nota <?php echo e($history->nama); ?></title>
</head>
<link
    href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
    rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- Custom styles for this template-->
<script src="https://kit.fontawesome.com/322f8d8037.js" crossorigin="anonymous"></script>
<style>
table {
  font-family: Arial, sans-serif;
}

p{
	font-family: Arial, sans-serif;
}

@page {
      margin: 0;
    }

    body {
      margin: 1cm;
    }

    header, footer {
      display: none;
    }
</style>
<body>

    <table class="table table-borderless" style="border: 0px">
        <tr>
            <td style="border: 0px">
               <h1>NOTA SERVICE</h1>
            </td>
            <td width="50%" style="border: 0px"></td>
        </tr>
    </table>
    <table class="table table-sm">
        <tr>
            <td style="width: 20%;border: 0px">Nomor</td>
            <td style="width:5%;border: 0px">:</td>
            <td style="border: 0px"><?php echo e($history->id); ?></td>
            <td style="width: 20%;border: 0px">Jenis Mobil</td>
            <td style="width:5%;border: 0px">:</td>
            <td style="border: 0px"><?php echo e($history->jenis_mobil); ?></td>
        </tr>
        <tr>
            <td style="width: 20%;border: 0px">Tanggal</td>
            <td style="width:5%;border: 0px">:</td>
            <td style="border: 0px"><?php echo e(\Carbon\Carbon::parse($history->created_at)->format('d-m-Y')); ?></td>
            <td style="width: 20%;border: 0px">Kilometer</td>
            <td style="width:5%;border: 0px">:</td>
            <td style="border: 0px"><?php echo e(number_format($history->kilometer)); ?></td>
        </tr>
        <tr>
            <td style="width: 20%;border: 0px">Nama Customer</td>
            <td style="width:5%;border: 0px">:</td>
            <td style="border: 0px"><?php echo e($history->nama); ?></td>
            <td style="width: 20%;border: 0px">Pegawai</td>
            <td style="width:5%;border: 0px">:</td>
            <td style="border: 0px"><?php echo e($history->nama_pegawai); ?></td>
        </tr>
        <tr>
            <td style="width: 20%;border: 0px">Nomor Polisi</td>
            <td style="width:5%;border: 0px">:</td>
            <td style="border: 0px"><?php echo e($history->no_polisi); ?></td>
        </tr>
        <tr>

        </tr>
        <tr>

        </tr>
        <tr>

        </tr>
    </table>
    <table class="table table-bordered">
        <thead>
            <th>No</th>
            <th>Nama Barang/Jasa</th>
            <th>Jumlah</th>
            <th>Satuan</th>
            <th>Harga</th>
        </thead>
        <tbody>
            <?php
                $no=1;
            ?>
            <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td><?php echo e($no++); ?></td>
                <td><?php echo e($data->nama_barang); ?> <?php echo e($data->jasa); ?></td>
                <td><?php echo e($data->jumlah); ?></td>
                <td><?php echo e($data->satuan); ?></td>
                <td>Rp. <?php echo e(number_format($data->harga_barang)); ?></td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td colspan="3"></td>
                <th>Diskon</th>
                <th><?php echo e($history->discount); ?>%</th>
            </tr>
            <tr>
                <td colspan="3"></td>
                <th>Jumlah</th>
                <th>Rp. <?php echo e(number_format($history->harga_total)); ?></th>
            </tr>
        </tbody>
    </table>

    <script type="text/javascript">
        window.print();
    </script>



<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>

</html>
<?php /**PATH C:\Files\2024\05 - Bengkel\bengkel\resources\views/service/print.blade.php ENDPATH**/ ?>