142 lines
7.3 KiB
PHP
142 lines
7.3 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', 'Orang Tua')
|
|
|
|
@push('style')
|
|
<!-- CSS Libraries -->
|
|
<link rel="stylesheet" href="{{ asset('library/selectric/public/selectric.css') }}">
|
|
@endpush
|
|
|
|
@section('main')
|
|
<div class="main-content">
|
|
<section class="section">
|
|
<div class="section-header">
|
|
<h1>Data Orang Tua</h1>
|
|
<div class="section-header-button">
|
|
<a href="{{ route('orangtua.create') }}" class="btn btn-primary">Add New</a>
|
|
</div>
|
|
<div class="section-header-breadcrumb">
|
|
<div class="breadcrumb-item active"><a href="#">Dashboard</a></div>
|
|
<div class="breadcrumb-item"><a href="#">Orang Tua</a></div>
|
|
<div class="breadcrumb-item">Data Orang Tua</div>
|
|
</div>
|
|
</div>
|
|
|
|
@if (Session::has('message'))
|
|
<div class="alert alert-light alert-dismissible show fade">
|
|
<div class="alert-body">
|
|
<button class="close" data-dismiss="alert">
|
|
<span>×</span>
|
|
</button>
|
|
{{ Session::get('message') }}
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="section-body">
|
|
<div class="row mt-4">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
{{-- <div class="card-header">
|
|
<h4>Data Orang Tua</h4>
|
|
</div> --}}
|
|
<div class="card-body">
|
|
<div class="float-right">
|
|
<form method="GET" action="{{ route('orangtua.index') }}">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" placeholder="Cari" name="name">
|
|
<div class="input-group-append">
|
|
<button class="btn btn-primary"><i class="fas fa-search"></i></button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="clearfix mb-3"></div>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table-striped table">
|
|
<tr>
|
|
<th class="text-center">
|
|
#
|
|
</th>
|
|
<th>Nama</th>
|
|
<th>NIK</th>
|
|
{{-- <th>Email</th> --}}
|
|
<th>No Telepon</th>
|
|
<th>Alamat</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
@foreach ($orangtuas as $orangtua)
|
|
<tr>
|
|
<th scope="row">{{ $loop->iteration }}</th>
|
|
<td>
|
|
{{ $orangtua->name }}
|
|
</td>
|
|
{{-- <td>
|
|
{{ $orangtua->nik }}
|
|
</td> --}}
|
|
<td>
|
|
{{ $orangtua->nik }}
|
|
</td>
|
|
<td>
|
|
{{ $orangtua->phone }}
|
|
</td>
|
|
<td>
|
|
{{ $orangtua->alamat }}
|
|
</td>
|
|
<td>
|
|
<div class="d-flex justify-content">
|
|
|
|
<a href="{{ route('orangtua.show', $orangtua->id) }}"
|
|
class="btn btn-sm btn-primary btn-icon">
|
|
<i class="fas fa-eye"></i>
|
|
</a>
|
|
|
|
<a href='{{ route('orangtua.edit', $orangtua->id) }}'
|
|
class="btn btn-sm btn-info btn-icon ml-2">
|
|
<i class="fas fa-edit"></i>
|
|
</a>
|
|
{{-- <a href='{{ route('orangtua.edit', $orangtua->id) }}'
|
|
class="btn btn-sm btn-info btn-icon ml-2">
|
|
<i class="fas fa-edit"></i>
|
|
Edit
|
|
</a> --}}
|
|
|
|
<form action="{{ route('orangtua.destroy', $orangtua->id) }}"
|
|
method="POST" class="ml-2">
|
|
<input type="hidden" name="_method" value="DELETE" />
|
|
<input type="hidden" name="_token"
|
|
value="{{ csrf_token() }}" />
|
|
<button class="btn btn-sm btn-danger btn-icon confirm-delete"
|
|
onclick="return confirm('Hapus data?')">
|
|
<i class="fas fa-trash"></i>
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
|
|
</table>
|
|
</div>
|
|
<div class="float-right">
|
|
{{ $orangtuas->withQueryString()->links() }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
<!-- JS Libraies -->
|
|
<script src="{{ asset('library/selectric/public/jquery.selectric.min.js') }}"></script>
|
|
|
|
<!-- Page Specific JS File -->
|
|
<script src="{{ asset('js/page/features-posts.js') }}"></script>
|
|
@endpush
|