48 lines
1.8 KiB
PHP
48 lines
1.8 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', 'Data Transaksi')
|
|
@section('content')
|
|
<div class="container">
|
|
<h1>Data Transaksi</h1>
|
|
<a href="{{ route('tr_transaksi.create') }}" class="btn btn-primary mb-3">Tambah Transaksi</a>
|
|
|
|
<form method="GET" action="{{ route('tr_transaksi.index') }}" class="mb-3">
|
|
<input type="text" name="search" class="form-control" placeholder="Cari berdasarkan ID atau ID Registrasi..." value="{{ request('search') }}">
|
|
</form>
|
|
|
|
<table class="table table-bordered">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th>No</th>
|
|
<th>ID Registrasi</th>
|
|
<th>ID Tindakan</th>
|
|
<th>Jumlah Tindakan</th>
|
|
<th>ID Pegawai</th>
|
|
<th>Aksi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($transaksis as $transaksi)
|
|
<tr>
|
|
<td>{{ $transaksi->IdTransaksi }}</td>
|
|
<td>{{ $transaksi->IdRegistrasi }}</td>
|
|
<td>{{ $transaksi->IdTindakan }}</td>
|
|
<td>{{ $transaksi->JmlTindakan }}</td>
|
|
<td>{{ $transaksi->IdPegawai }}</td>
|
|
<td>
|
|
<a href="{{ route('tr_transaksi.edit', $transaksi->IdTransaksi) }}" class="btn btn-warning btn-sm">Edit</a>
|
|
<form action="{{ route('tr_transaksi.destroy', $transaksi->IdTransaksi) }}" method="POST" style="display:inline;">
|
|
@csrf
|
|
@method('DELETE')
|
|
<button class="btn btn-danger btn-sm" onclick="return confirm('Yakin hapus?')">Hapus</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
{{ $transaksis->links() }}
|
|
</div>
|
|
@endsection
|