Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/pembelian/
Upload File :
Current File : /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/pembelian/cetak.blade.php

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Invoice/Kwitansi - {{ $data->number }}</title>
    <style>
        * {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 12px;
        }

        @media print{
          .pagebreak{
            page-break-before: always;
          }
        }

        .f-right {
            float: right;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        hr {
            width: 60%;
            height: 1px;
            background-color: #000;
        }

        table.content {
            margin-top: 8px;
        }

        table.content thead tr {
            border-top: 1px solid #000;
            border-bottom: 1px solid #000;
        }

        table.content thead tr th {
            padding: 0.4rem 0;
        }

        table.content tbody tr td,
        table.footer tr td {
            padding: 0.4rem;
        }

        table.content tbody tr:last-child {
            border-bottom: 1px solid #000;
        }

        table.footer {
            margin-top: 1rem;
        }

        .signature-image {
            width: 100px;
        }

        .total {
            border-top: 1px solid #000;
        }

    </style>
</head>

<body onload="window.print();">

  @php
  $halaman = 1;
  @endphp

  @foreach ($dataChunk as $dc)
    <table class="header">
        <tr>
            <td width="50%">{{ $profil->nama }}</td>
            <td>Samarinda, {{ $data->tgl_pembelian }}</td>
        </tr>
        <tr>
            <td>{{ $profil->alamat }}</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Telp./HP. {{ $profil->no_telepon }}</td>
            <td>Purchase Order:</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>{{ $data->supplier->nm_supplier }}</td>
        </tr>
        <tr>
            <td rowspan="2">
              <img src="data:image/png;base64,{!! DNS1D::getBarcodePNG($data->no_pembelian, 'C128',1,40) !!}" alt="barcode"  style="width: 100px;" />
            </td>
            <td>{{ $data->supplier->alamat }}</td>
        </tr>
        <tr>
            <td>{{ $data->supplier->no_telepon }}</td>
        </tr>
        <tr>
            <td>No. Nota: {{ $data->no_pembelian }}</td>
            <td align="right">Tgl.Kirim: {{ @$data->tgl_receive }}</td>
        </tr>
    </table>
    <table class="content">
        <thead>
            <tr>
                <th width="5%" align="left">No</th>
                <th width="15%" align="left">Qty</th>
                <th width="15%" align="left">Kode</th>
                <th width="25%" align="left">Nama Barang</th>
                <th width="15%" align="right">Harga</th>
                <th width="10%" align="right">Disc</th>
                <th width="15%" align="right">Jumlah</th>
            </tr>
        </thead>
        <tbody>
          @php
          $totalAnggaran = 0;
          $subTotal = 0;
          $totalDiskon = 0;
          @endphp
          @foreach ($dc as $detail)
            <tr>
                <td>{{ $loop->iteration }}</td>
                <td align="left">{{ $detail->jumlah }} {{ $detail->harga_barang->satuan_beli->nm_satuan }}</td>
                <td>{{ $detail->harga_barang->barang->kd_barang }}</td>
                <td>{{ $detail->harga_barang->barang->nm_barang }}</td>
                <td align="right">Rp. {{ number_format($detail->biaya) }}</td>
                <td align="right">{{ number_format($detail->diskon) }}</td>
                <td align="right">{{ number_format(($detail->biaya - $detail->diskon) * $detail->jumlah) }}</td>
            </tr>
            @php
            $subTotal += $detail->biaya * $detail->jumlah;
            $totalDiskon = $detail->diskon;
            @endphp
            @endforeach
        </tbody>
    </table>
    <table class="footer">
        <tr>
            <td colspan="3">
                <table>
                    <tr>
                        <td><em>Terbilang:</em></td>
                        <td><em>{{ $terbilang }}</em></td>
                    </tr>
                </table>
            </td>
            <td width="10%">Subtotal</td>
            <td width="15%">
                <span>Rp</span>
                <div class="f-right">{{ number_format($subTotal) }}</div>
            </td>
        </tr>
        <tr>
            <td align="center">Prepared,</td>
            <td align="center">Reviewed,</td>
            <td align="center">Received,</td>
            <td>Disc</td>
            <td>
                <span>Rp</span>
                <div class="f-right">{{ number_format($totalDiskon) }}</div>
            </td>
        </tr>
        <tr>
            <td align="center">
              <img src="{{ asset('images/user/' . @$data->prepared->image) }}" class="signature-image" alt="">
                <hr>
                <span>{{ @$data->prepared->name }}</span>
            </td>
            <td align="center">
                <img src="{{ asset('images/user/' . @$data->reviewed->image) }}" class="signature-image" alt="">
                <hr>
                <span>{{ @$data->reviewed->name }}</span>
            </td>
            <td align="center">
              <img src="{{ asset('images/user/' . @$data->received->image) }}" class="signature-image" alt="">
                <hr>
                <span>{{ @$data->received->name }}</span>
            </td>
            <td valign="top" class="total">Jumlah</td>
            <td valign="top" class="total">
                <span>Rp</span>
                <div class="f-right">{{ number_format($data->total) }}</div>
            </td>
        </tr>
    </table>
    <div style="position: fixed; bottom: 0;">
        <p>Hal : {{ $halaman }}</p>
    </div>

    <div class="pagebreak"></div>

    @php
    $halaman++;
    @endphp
    @endforeach
</body>

</html>

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]