Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/tokoku.fixmate.id/resources/views/penjualan/
Upload File :
Current File : /home/aplikasiposinfo/public_html/tokoku.fixmate.id/resources/views/penjualan/cetak.blade.php

<html>

<head>
    <title>:: Laporan Transaksi Penjualan</title>

</head>

<body>
    <script type="text/javascript">
        window.print();
        window.onfocus = function() {
            window.close();
        }
    </script>
    <style>
        table,
        th,
        td {
            border: 1px solid black;
            border-collapse: collapse;
        }

        td {
            text-align: center;
        }
    </style>
    <h2>LAPORAN DATA PENJUALAN </h2>
    <table cellspacing="1" cellpadding="2">
        <thead>
            <tr>

                <th bgcolor="#F5F5F5">No.Penjualan</th>
                <th bgcolor="#F5F5F5"><strong>Tanggal</strong></th>
                <th bgcolor="#F5F5F5"><strong>Nama Pelanggan</strong></th>
                <th bgcolor="#F5F5F5"><strong>List Barang</strong></th>
                <th bgcolor="#F5F5F5"><strong>Status Garansi</strong></th>
                <th bgcolor="#F5F5F5"><strong>Metode Bayar</strong></th>
                <th bgcolor="#F5F5F5"><strong>Status Pembayaran</strong></th>
                <th bgcolor="#F5F5F5"><strong>Sales</strong></th>
                <th bgcolor="#F5F5F5"><strong>Kasir</strong></th>
                <th bgcolor="#F5F5F5"><strong>Total Modal</strong></th>
                <th bgcolor="#F5F5F5"><strong>Total Harga</strong></th>
                <th bgcolor="#F5F5F5"><strong>Laba Rugi Penjualan</strong></th>

            </tr>
        </thead>
        <tbody>

            @foreach ($datas as $key => $data)
                <tr>
                    <td>{{ $data->nomor_nota }}</td>
                    <td>{{ $data->tanggal_penjualan }}</td>
                    @if ($data->pelanggan)
                        <td>{{ $data->pelanggan->nama_pelanggan }}</td>
                    @else
                        <td>Umum</td>
                    @endif



                    <td style="max-width: 300px;">
                        @foreach ($data->detail_penjualan as $detail)
                            {!! $detail->nama_item . ',' . '<br>' !!}
                        @endforeach
                    </td>
                    <td>
                        @foreach ($data->detail_penjualan as $detail)
                            @if ($detail->akhir_garansi >= now())
                                <span class="">aktif</span><br>
                            @else
                                <span class="">kedaluwarsa</span><br>
                            @endif
                        @endforeach
                    </td>

                    <td>{{ $data->metode_bayar }}</td>
                    <td>{{ $data->status_pembayaran }}</td>

                    <td> {{ optional($data->sales)->nama_pengguna }}</td>
                    <td> {{ $data->pengguna->nama_pengguna }}</td>
                    <td>Rp. {{ number_format($data->total_modal) }}</td>
                    <td>Rp. {{ number_format($data->total) }}</td>
                    <td>Rp. {{ number_format($data->total - $data->total_modal) }}</td>

                </tr>
            @endforeach
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>

                <td></td>
                <td><strong>Total </strong></td>
                <td><strong>Rp. {{ number_format($modal) }}</strong></td>
                <td><strong>Rp. {{ number_format($pendapatan) }}</strong></td>
                <td><strong>Rp. {{ number_format($laba_rugi) }}</strong></td>
            </tr>
        </tbody>


    </table>

</body>

</html>

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