-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.blade.php
51 lines (51 loc) · 2.2 KB
/
index.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@extends('student')
@section('content')
<div class="card">
<div class="card-header">
<h2>laravel crud</h2>
</div>
<div class="card-body">
<a href="{{url('/student/create')}}" class="btn btn-success btn-sm" title="Add">
<i class="fa fa-plus" aria-hidden="true"></i>Add New
</a>
<br />
<br />
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>name</th>
<th>address</address></th>
<th>mobile</th>
<th>age</th>
<th>contact</th>
<th>action</th>
</tr>
</thead>
<tbody>
@foreach($students as $student)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$student->name}}</td>
<td>{{$student->address}}</td>
<td>{{$student->mobile}}</td>
<td>{{$student->age}}</td>
<td>{{$student->contact}}</td>
<td>
<a href="{{url('/student/'. $student->id)}}" title="View Student"></a>
<a href="{{url('/student/'. $student->id .'/edit')}}" title="View edit "></a>
<form action="POST" action="{{url('/student/'. '/' .$student->edit)}}"></form>
{{method_field('DELETE')}}
{{csrf_field()}}
<button type="submit"class="btn btn-danger btn-sm" title="Delete student"></button>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection