Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/demo.fixmate.id/resources/views/laporan/hutang/
Upload File :
Current File : /home/aplikasiposinfo/www/demo.fixmate.id/resources/views/laporan/hutang/index.blade.php

@extends('layouts.app')

@section('content')
    <div class="container-fluid">
        <div class="block-header">
            <h2>Laporan Pembayaran Hutang</h2>
        </div>

        <div class="row clearfix">
            <!-- Task Info -->
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="card">
                    <div class="header">
                        <a href="{{ route('laporan') }}" class="btn btn-warning">Kembali</a>
                    </div>
                    <div class="body">
                        @include('layouts.includes.filter')
                        @if (\Helper::hakAkses('cetak_laporan', 'laporan_hutang'))
                            <form action="{{ route('laporan.hutang.print') }}"target="_blank"
                                class="row flex-column-reverse">
                                <div class="col-md-6">
                                    <input type="hidden" class="form-control" name="periode" id="daterange"
                                        value="@if (isset($periode)) {{ $periode[0] }} - {{ $periode[1] }} @endif">
                                    <input type="hidden" class="form-control" name="excel" value="0">

                                </div>
                                <div class="col-md-6 text-right">
                                    <button type="submit" class="btn bg-light-green waves-effect">
                                        <i class="material-icons">print</i>
                                        <span>Cetak</span>
                                    </button>

                                </div>
                            </form>
                            <form action="{{ route('laporan.hutang.print') }}" target="_blank"
                                class="row flex-column-reverse">
                                <div class="col-md-6">
                                    <input type="hidden" class="form-control" name="periode" id="daterange"
                                        value="@if (isset($periode)) {{ $periode[0] }} - {{ $periode[1] }} @endif">
                                    <input type="hidden" class="form-control" name="excel" value="1">
                                </div>
                                <div class="col-md-6 text-right">
                                    <button type="submit" class="btn bg-green waves-effect">
                                        <i class="material-icons">print</i>
                                        <span>Cetak Excel</span>
                                    </button>

                                </div>
                            </form>
                        @endif
                        <div class="row">
                            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
                                <div class="card">
                                    <div class="header  text-center">
                                        <div>
                                            <h4><i class="material-icons col-amber ">attach_money</i>Total Hutang
                                            </h4>
                                        </div>
                                    </div>
                                    <div class="body  text-center" style="padding-top:0">
                                        <div style="margin-bottom:0px;margin-top:0">
                                            <h4>Rp. @if (isset($totalHutang))
                                                    {{ number_format($totalHutang) }}
                                                @else
                                                    0
                                                @endif
                                            </h4>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
                                <div class="card">
                                    <div class="header  text-center">
                                        <div>
                                            <h4><i class="material-icons col-amber ">attach_money</i>Telah Dibayarkan
                                            </h4>
                                        </div>
                                    </div>
                                    <div class="body  text-center" style="padding-top:0">
                                        <div style="margin-bottom:0px;margin-top:0">
                                            <h4>Rp. @if (isset($totalDibayarkan))
                                                    {{ number_format($totalDibayarkan) }}
                                                @else
                                                    0
                                                @endif
                                            </h4>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table class="table table-hover dashboard-task-infos">
                                <thead>
                                    <tr>
                                        <th>Nomor Pembelian</th>
                                        <th>Supplier</th>
                                        <th>Total</th>
                                        <th>Jumlah Bayar</th>
                                        <th>Status</th>

                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($datas as $data)
                                        <tr>
                                            <td>{{ $data->nomor_nota }}</td>
                                            <td>{{ $data->supplier->nama_supplier }}</td>
                                            <td>{{ number_format($data->total) }}</td>
                                            <td>{{ number_format($data->total_pembayaran_hutang) }}</td>
                                            <td>
                                                @if (!$data->status_lunas)
                                                    Belum Lunas
                                                @elseif($data->status_lunas)
                                                    Lunas
                                                @endif
                                            </td>
                                        </tr>
                                    @endforeach
                                </tbody>

                                <tfoot>
                                    @include('layouts.includes.pagination')
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <!-- #END# Task Info -->
        </div>
    </div>
@endsection

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