Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/artomoro.fixmate.id/resources/views/laporan/item/
Upload File :
Current File : /home/aplikasiposinfo/public_html/artomoro.fixmate.id/resources/views/laporan/item/index.blade.php

@extends('layouts.app')

@section('content')
    <div class="container-fluid">
        <div class="block-header">
            <h2>Laporan Barang</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">
                        <form action="" id="filter-form">
                            <div class="row">

                                <div class="col-lg-3 col-md-3">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="material-icons">assignment</i>
                                        </span>
                                        <div class="form-line">
                                            <select class="form-control" name="kategori">
                                                <option selected value="">Pilih Kategori</option>
                                                @foreach ($kategori as $item)
                                                    <option value="{{ $item->id }}">{{ $item->nama_kategori }}
                                                    </option>
                                                @endforeach

                                            </select>
                                        </div>
                                    </div>
                                </div>

                                {{-- <div class="col-lg-3 col-md-3">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="material-icons">memory</i>
                                            </span>
                                            <div class="form-line">
                                                <input class="form-control" placeholder="Nama Barang" name="nama_item"
                                                    value="">
                                            </div>
                                        </div>
                                    </div> --}}
                                <div class="col-lg-2 col-md-3">
                                    <div class="input-group">
                                        <button class="btn btn-primary">Cari</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                        @if (\Helper::hakAkses('cetak_laporan', 'laporan_barang'))
                            <form action="{{ route('laporan.items.print') }}" target="_blank"
                                class="row flex-column-reverse">
                                <div class="col-md-6">
                                    <input type="hidden" class="form-control" name="kategori"
                                        value="@if (isset($item_kategori)) {{ $item_kategori }} @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.items.print') }}" target="_blank"
                                class="row flex-column-reverse">
                                <div class="col-md-6">
                                    <input type="hidden" class="form-control" name="kategori"
                                        value="@if (isset($item_kategori)) {{ $item_kategori }} @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-4 col-xs-12">
                                <div class="card">
                                    <div class="header text-center">
                                        <div>
                                            <h2><i class="material-icons col-cyan ">shopping_cart</i>Stok Toko</h2>
                                        </div>
                                    </div>
                                    <div class="body  text-center" style="padding-top:0">
                                        <div style="margin-bottom:0px;margin-top:0">
                                            <h2>{{ $stok_toko }}</h2>
                                        </div>
                                    </div>
                                </div>
                            </div> --}}
                            @foreach ($tokos as $toko)
                                <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
                                    <div class="card">
                                        <div class="header text-center">
                                            <div>
                                                <h2><i class="material-icons col-cyan ">shopping_cart</i>Stok Toko {{$toko->nama_toko}}</h2>
                                            </div>
                                        </div>
                                        <div class="body  text-center" style="padding-top:0">
                                            <div style="margin-bottom:0px;margin-top:0">
                                                <h2>{{ $toko->stok_item_tokos->sum('stok') }}</h2>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            @endforeach
                            {{-- <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
                                <div class="card">
                                    <div class="header text-center">
                                        <div>
                                            <h2><i class="material-icons col-lime ">store_mall_directory</i>Stok Gudang
                                            </h2>
                                        </div>
                                    </div>
                                    <div class="body  text-center" style="padding-top:0">
                                        <div style="margin-bottom:0px;margin-top:0">
                                            <h2>{{ $stok_gudang }}</h2>
                                        </div>
                                    </div>
                                </div>
                            </div> --}}
                            {{-- <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
                                <div class="card">
                                    <div class="header text-center">
                                        <div>
                                            <h2><i class="material-icons col-orange ">money_off</i>Barang Retur</h2>
                                        </div>
                                    </div>
                                    <div class="body  text-center" style="padding-top:0">
                                        <div style="margin-bottom:0px;margin-top:0">
                                            <h2>{{ $retur_barang }}</h2>
                                        </div>
                                    </div>
                                </div>
                            </div> --}}
                            @if (\Helper::hakAkses('dashboard_admin', 'view'))
                                <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
                                    <div class="card">
                                        <div class="header text-center">
                                            <div>
                                                <h2><i class="material-icons col-green ">monetization_on</i>Modal</h2>
                                            </div>
                                        </div>
                                        <div class="body  text-center" style="padding-top:0">
                                            <div style="margin-bottom:0px;margin-top:0">
                                                <h2>Rp. {{ number_format($modal) }}</h2>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            @endif
                        </div>

                        <div class="table-responsive">
                            <table class="table table-hover dashboard-task-infos">
                                <thead>
                                    <tr>
                                        <th>Nama Barang</th>
                                        <th>Kategori</th>
                                        <th>Harga Jual</th>
                                        <th>Harga Beli</th>
                                        <th>Stok Toko</th>
                                        {{-- <th>Stok Gudang</th> --}}
                                        <th>Retur penjualan</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($datas as $key => $data)
                                        <tr>

                                            <td>
                                                {{ $data->nama_item }}
                                            </td>
                                            <td>
                                                {{ $data->kategoriItem->nama_kategori }}
                                            </td>
                                            <td>
                                                {{ number_format($data->harga_item) }}
                                            </td>
                                            <td>
                                                {{ number_format($data->biaya_item) }}
                                            </td>
                                            <td>
                                                {{-- {{ $data->stok }} --}}
                                                <ul>
                                                    @foreach ($tokos as $toko)
                                                        <li><b>{{ $toko->nama_toko }}</b>: {{ $data->stok_item_tokos->where('toko_id',$toko->id)->sum('stok') }}</li>
                                                    @endforeach
                                                </ul>
                                            </td>
                                            {{-- <td>
                                                {{ $data->stok_gudang }}
                                            </td> --}}
                                            <td>
                                                {{ $data->total_retur_penjualan }}
                                            </td>


                                        </tr>
                                    @endforeach

                                </tbody>
                                <tfoot>
                                    <tr>
                                        <td colspan="5">
                                            @if ($datas->currentPage() != 1)
                                                <a href="{{ $datas->previousPageUrl() }}"
                                                    @if ($datas->currentPage() == 1) style="display:none;" @endif> Previous
                                                </a>
                                                <a href="{{ $datas->url(1) }}">1</a>
                                            @endif
                                            @for ($i = max($datas->currentPage() - 5, 2); $i < $datas->currentPage(); $i++)
                                                <a href="{{ $datas->url($i) }}">{{ $i }}</a>
                                            @endfor
                                            <a href="{{ $datas->url($datas->currentPage()) }}" style="font-weight: bold">
                                                {{ $datas->currentPage() }} </a>
                                            @if ($datas->currentPage() != $datas->lastPage() && $datas->currentPage() != $datas->lastPage() - 1)
                                                @for ($i = $datas->currentPage() + 1; $i < $datas->currentPage() + 5; $i++)
                                                    @if ($i < $datas->lastPage())
                                                        <a href="{{ $datas->url($i) }}">{{ $i }}</a>
                                                    @endif
                                                @endfor
                                            @endif
                                            @if ($datas->currentPage() != $datas->lastPage())
                                                <a
                                                    href="{{ $datas->url($datas->lastPage()) }}">{{ $datas->lastPage() }}</a>
                                                <a href="{{ $datas->nextPageUrl() }}"> Next </a>
                                            @endif
                                        </td>
                                    </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <!-- #END# Task Info -->
        </div>
    </div>
@endsection

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