Created
July 20, 2020 09:54
-
-
Save saeedhajinasiri/74e01ace2e55619000f6eb7f8ea4fd04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layout') | |
@section('content') | |
<div class="col-md-12"> | |
<div class="table-responsive"> | |
<table class="table table-bordered table-condensed table-striped"> | |
<thead> | |
<th>ID</th> | |
<th>NAME</th> | |
<th>EMAIL</th> | |
<th>PHONE</th> | |
<th>ACTION</th> | |
</thead> | |
<tbody> | |
@foreach($data as $row) | |
<tr> | |
<td>{{$row->id }}</td> | |
<td>{{$row->name }}</td> | |
<td>{{$row->email }}</td> | |
<td>{{$row->phone }}</td> | |
<td> | |
<a href="{{ route('contacts.edit', $row->id)}}" class="btn btn-primary">Edit</a> | |
<form action="{{ route('contacts.destroy', $row->id)}}" method="post"> | |
@csrf @method('DELETE') | |
<button class="btn btn-danger" type="submit">Delete</button> | |
</form> | |
</td> | |
</tr> | |
@endforeach | |
</tbody> | |
</table> | |
</div> | |
<div> | |
<?php echo $data->render(); ?> | |
</div> | |
</div> | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment