Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/derfacell.fixmate.id/resources/views/pembelian/
Upload File :
Current File : /home/aplikasiposinfo/www/derfacell.fixmate.id/resources/views/pembelian/index.blade.php

@extends('layouts.app')

@section('content')
    @push('styles')
        <!-- JQuery DataTable Css -->
        <link href="{{ url('material') }}/plugins/jquery-datatable/skin/bootstrap/css/dataTables.bootstrap.css" rel="stylesheet">
        <!-- JQuery DataTable Css -->
    @endpush
    @push('scripts')
        {{-- data Table --}}
        <script src="{{ url('material') }}/js/pages/tables/jquery-datatable.js"></script>
        <script src="{{ url('material') }}/plugins/jquery-datatable/jquery.dataTables.js"></script>
        <script src="{{ url('material') }}/plugins/jquery-datatable/skin/bootstrap/js/dataTables.bootstrap.js"></script>
        {{-- data Table --}}
    @endpush
    <div class="container-fluid">
        <div class="block-header">
            <h2>Transaksi Pembelian</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">
                        @if (\Helper::hakAkses('pembelian', 'create'))
                            <a href="{{ route('pembelian.create') }}" class="btn btn-primary">Tambah Pembelian</a>
                        @endif
                    </div>
                    <div class="body">
                        @include('layouts.includes.filter')
                        <div class="table-responsive">
                            <table class="table table-bordered table-striped table-hover js-basic-example dataTable">
                                <thead>
                                    <tr>
                                        <th>No.</th>
                                        <th>Tanggal</th>
                                        <th>Nama Supplier</th>
                                        <th>List Barang</th>
                                        <th>Total Harga</th>
                                        <th>Keterangan</th>
                                        <th>Tools</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($datas as $key => $data)
                                        <tr>
                                            <td>{{ $loop->iteration }}</td>
                                            <td>{{ $data->tanggal_pembelian }}</td>
                                            @if ($data->supplier)
                                                <td>{{ $data->supplier->nama_supplier }}</td>
                                            @else
                                                <td>Umum</td>
                                            @endif
                                            <td style="max-width: 300px;">
                                                @foreach ($data->detail_pembelian as $detail)
                                                    @if (isset($detail->item))
                                                        {!! $detail->item->nama_item . ',' . '<br>' !!}
                                                    @else
                                                        item tidak tersedia!
                                                    @endif
                                                @endforeach
                                            </td>
                                            <td>Rp. {{ number_format($data->total) }}</td>
                                            <td>{{ $data->keterangan }}</td>
                                            <td>
                                                @if (\Helper::hakAkses('pembelian', 'view'))
                                                    <a href="{{ route('pembelian.show', [($id = $data->id)]) }}"
                                                        class="btn btn-info">Detail</a>
                                                @endif
                                                @if (\Helper::hakAkses('pembelian', 'edit'))
                                                    <a href="{{ route('pembelian.edit', [($id = $data->id)]) }}"
                                                        class="btn btn-primary">Edit</a>
                                                @endif
                                                @if (\Helper::hakAkses('pembelian', 'delete'))
                                                    <form action="{{ route('pembelian.destroy', $data->id) }}"
                                                        method="POST" style="display:inline">
                                                        @csrf
                                                        @method('DELETE')
                                                        <button type="submit" class="btn btn-danger"
                                                            id="hapus-button">Delete</button>
                                                    </form>
                                                @endif
                                            </td>
                                        </tr>
                                    @endforeach

                                </tbody>

                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <!-- #END# Task Info -->
        </div>
    </div>
@endsection

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