@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>Data Pembayaran Piutang</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">
</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>Nomor Penjualan</th>
<th>Pelanggan</th>
<th>Total</th>
<th>Jumlah Bayar</th>
<th>Status</th>
<th>Tools</th>
</tr>
</thead>
<tbody>
@foreach ($datas as $data)
<tr>
<td>{{ $data->nomor_nota }}</td>
<td>{{ $data->pelanggan->nama_pelanggan }}</td>
<td>{{ number_format($data->total) }}</td>
<td>{{ number_format($data->uang_bayar) }}</td>
<td>
@if (!$data->status_lunas)
Belum Lunas
@elseif($data->status_lunas)
Lunas
@endif
</td>
<td>
@if (!$data->status_lunas)
@if (\Helper::hakAkses('pembayaran_piutang', 'create'))
<a href="{{ route('pembayaran_piutang.edit', $data->id) }}"
class="btn btn-primary">Bayar</a>
@endif
@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]