Skip to content

Instantly share code, notes, and snippets.

@phreakin
Created May 12, 2023 08:23
Show Gist options
  • Save phreakin/067d20575b712fceb56f9477506e9ce5 to your computer and use it in GitHub Desktop.
Save phreakin/067d20575b712fceb56f9477506e9ce5 to your computer and use it in GitHub Desktop.
table.blade.php
@extends('layouts.admin')
@section('content')
<section class="section">
<div class="container is-fluid">
<div class="card no-box-shadow-mobile">
<header class="card-header">
<p class="card-header-title">
{{ __(Route::getCurrentRoute()->getName()) }}
@if (isset($link))
<a class="navbar-item" href="{{ $link }}">
<span class="icon">
{!! icon('plus') !!}
</span>
</a>
@endif
</p>
</header>
<div class="card-content" style="padding-bottom: 2rem;">
{!! $dataTable->table() !!}
</div>
</div>
</div>
</section>
@endsection
@section('scripts')
{!! $dataTable->scripts() !!}
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment