export_laporan_pembelian.blade.php

 avatar
unknown
php_laravel_blade
2 years ago
5.1 kB
2
Indexable
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Data Pasok</title>

</head>

<body>
    <table class="table table-bordered">
        <thead>
            <tr>
                <th colspan="16">
                    <center><b>PERIODE {{$tgl}}</b></center>
                </th>
            </tr>
            <tr>
                @if($filter == "detail")
                <th colspan="3">
                    <center><b>Jumlah Pasok: {{$jumlah}}</b></center>
                </th>
                <th colspan="3">
                    <center><b>Jumlah pemasok: {{$jumlah_pemasok}}</b></center>
                </th>
                <th colspan="3">
                    <center><b>Jumlah Harga_total: {{$jumlah_harga_total}}</b></center>
                </th>
                <th colspan="3">
                    <center><b>Jumlah Barang (satuan): Besar : {{$dos}} Kecil : {{$pack}}</b></center>
                </th>
                <th colspan="4">
                    <center><b>Jumlah Harga: Besar : {{$harga_dos}} Kecil : {{$harga_pack}}</b></center>
                </th>
                @else
                <th>
                    <center><b>Jumlah Pasok: {{$jumlah}}</b></center>
                </th>
                <th>
                    <center><b>Jumlah Supplier: {{$jumlah_pemasok}}</b></center>
                </th>
                <th colspan="2">
                    <center><b>Jumlah Barang (satuan): Besar : {{$dos}} Kecil : {{$pack}}</b></center>
                </th>
                <th colspan="3">
                    <center><b>Jumlah Harga Total: {{ $jumlah_harga_total }}</b></center>
                </th>
                <th colspan="4">
                    <center><b>Jumlah Harga: Besar : {{ $harga_dos }} Kecil : {{ $harga_pack }}</b></center>
                </th>
                @endif
            </tr>
            @if($filter == 'detail')
            <tr>
                <th><b>Kode Pasok</b></th>
                <th><b>Pemasok</b></th>
                <th><b>Surat Jalan</b></th>
                <th><b>No Faktur</b></th>
                <th><b>Kode Barang</b></th>
                <th><b>Nama Barang</b></th>
                <th><b>Harga</b></th>
                <th><b>Jumlah</b></th>
                <th><b>Kemasan</b></th>
                <th><b>Subtotal</b></th>
                <th><b>Status</b></th>
                <th><b>Admin Pasok</b></th>
                <th><b>Status Pajak</b></th>
                <th><b>Tanggal Input</b></th>
                <th><b>Created_at</b></th>
                <th><b>Updated_at</b></th>
            </tr>
            @else
            <tr>
                <th><b>Kode Pasok</b></th>
                <th><b>Pemasok</b></th>
                <th><b>Jumlah Besar</b></th>
                <th><b>Jumlah Kecil</b></th>
                <th><b>Surat Jalan</b></th>
                <th><b>No Faktur</b></th>
                <th><b>Total Harga</b></th>
                <th><b>Admin Pasok</b></th>
                <th><b>Tanggal Input</b></th>
                <th><b>Created_at</b></th>
            </tr>
            @endif
        </thead>
        <tbody>
            @if($filter == 'detail')
            @foreach ($pasok as $item)
            <tr>
                <td>{{ $item->kode_pasok }}</td>
                <td>{{ $item->pemasok }}</td>
                <td>{{ $item->surat_jalan }}</td>
                <td>{{ $item->no_faktur }}</td>
                <td>{{ $item->kode_barang }}</td>
                <td>{{ $item->nama_barang }}</td>
                <td>{{ $item->harga_beli}}</td>
                <td>{{ $item->jumlah }}</td>
                <td>{{ $item->jenis_kemasan }}</td>
                <td>{{ $item->subtotal }}</td>
                <td>{{ $item->status }}</td>
                <td>{{ $item->id_worker }}</td>
                <td>{{ $item->status_pajak }}</td>
                <td>{{ date('d-m-Y H:i', strtotime($item->tanggal)) }}</td>
                <td>{{ $item->created_at->format('d-m-Y H:i') }}</td>
                <td>{{ $item->updated_at->format('d-m-Y H:i') }}</td>
            </tr>
            @endforeach
            @else
            @foreach ($pasok as $item)
            <tr>
                <td>{{ $item->kode_pasok }}</td>
                <td>{{ $item->pemasok }}</td>
                <td>{{ $item->jumlah_besar }}</td>
                <td>{{ $item->jumlah_kecil }}</td>
                <td>{{ $item->surat_jalan }}</td>
                <td>{{ $item->no_faktur }}</td>
                <td>{{ $item->subtotal }}</td>
                <td>{{ $item->id_worker }}</td>
                <td>{{ date('d-m-Y H:i', strtotime($item->tanggal)) }}</td>
                <td>{{ $item->created_at->format('d-m-Y H:i') }}</td>
            </tr>
            @endforeach
            @endif
        </tbody>
    </table>

</body>

</html>
Editor is loading...