New-OMIS/resources/views/crud/template.blade.php

43 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2024-04-07 07:28:58 +00:00
@extends('layouts.app')
2024-04-05 05:22:15 +00:00
@section('content')
2024-04-07 07:28:58 +00:00
<div class="card">
2024-04-05 05:22:15 +00:00
<div class="card-header">
2024-04-07 07:28:58 +00:00
{{ label($title . ' List') }}
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
<ul class="d-flex">
<li>
<a href="{{ route($routeName . 'create') }}" class="btn btn-md d-md-none btn-primary" data-bs-toggle="modal"
data-bs-target="">
<em class="icon ni ni-plus"></em><span>Add</span>
</a>
</li>
<li>
<a href="{{ route($routeName . 'create') }}" class="btn btn-primary d-none d-md-inline-flex">
<em class="icon ni ni-plus"></em><span>Add {{ label($translated) }}</span>
</a>
</li>
</ul>
2024-04-05 05:22:15 +00:00
</div>
<div class="card-body">
2024-04-07 07:28:58 +00:00
<table class="datatable-init table" data-nk-container="table-responsive" id="CustomTable">
<thead class="table-light">
<tr>
<th class="tb-col"><span class="overline-title">S.N.</span></th>
{{ $tableHeader }}
<th class="tb-col" data-sortable="false"><span class="overline-title">{{ label('Action') }}</span></th>
</tr>
</thead>
<tbody>
@php
$i = 1;
@endphp
@foreach ($data as $item)
{{ $tableRows }}
@endforeach
</tbody>
</table>
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
</div>
@endsection