MIF_E31210863/resources/views/admin/obtaineds/index.blade.php

76 lines
3.3 KiB
PHP

@extends('layouts.admin')
@section('content')
<div class="container-fluid">
@if(session('message'))
<div class="alert alert-info">
{{ session('message') }}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
@endif
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">{{ __('Service Obtained') }}</h1>
<a href="{{ route('admin.obtained.create') }}" class="btn btn-primary btn-sm shadow-sm">{{ __('create new')}} <i class="fa fa-plus"> </i></a>
</div>
<!-- Content Row -->
<div class="card">
<div class="card-body">
<div class="table-responsive">
<form action="{{ route('admin.obtained.index') }}" method="GET" class="mb-3">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search..." name="search" value="{{ request()->input('search') }}">
<div class="input-group-append">
<button class="btn btn-primary" type="submit">Search</button>
</div>
</div>
</form>
<table class="table table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>No</th>
<th>Obtained Name</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@forelse($obtaineds as $obtained)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $obtained->name }}</td>
<td>
<a href="{{ route('admin.obtained.edit', $obtained->id) }}" class="btn btn-info">
<i class="fa fa-pencil-alt"></i>
</a>
<form onclick="return alert('are you sure ? ')" class="d-inline" action="{{ route('admin.obtained.destroy', $obtained->id) }}" method="POST">
@csrf
@method('delete')
<button class="btn btn-danger">
<i class="fa fa-trash"></i>
</button>
</form>
</td>
</tr>
@empty
<tr>
<td colspan="7" class="text-center">{{ __('Data Service Obtained Empty') }}</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
<div class="card-footer">
{{ $obtaineds->links() }}
</div>
</div>
<!-- Content Row -->
</div>
@endsection