@extends("flowdash::layouts.{$layout}", [ 'title' => 'Tables', 'breadcrumb' => [[ 'title' => 'UI Components' ], [ 'title' => 'Tables' ]], 'new_button_label' => false ]) @section('content')

Toggle Checkboxes

A tiny plugin which adds the ability to toggle all checkboxes within a table.

@component('flowdash::components.staff-table', [ 'employer' => false, 'projects' => false, 'pagination' => false, 'items' => [[ 'selected' => true, 'avatar' => [ 'image' => '/vendor/flowdash/images/256_luke-porter-261779-unsplash.jpg' ], 'name' => 'Michael Smith', 'status_name' => 'Admin', 'date' => '3 days ago', 'earnings' => '12,402' ], [ 'avatar' => [ 'image' => '/vendor/flowdash/images/avatar/green.svg' ], 'name' => 'Connie Smith', 'email' => 'paolo.zieme@gmail.com', 'status_name' => 'User', 'status_class' => 'badge-success', 'date' => '1 week ago', 'earnings' => '1,943' ], [ 'avatar' => [ 'image' => '/vendor/flowdash/images/256_daniel-gaffey-1060698-unsplash.jpg' ], 'name' => 'John Connor', 'email' => 'vida_glover@gmail.com', 'status_name' => 'Manager', 'status_class' => 'badge-primary', 'date' => '2 weeks ago', 'earnings' => '1,401' ], [ 'selected' => true, 'avatar' => [ 'image' => '/vendor/flowdash/images/256_luke-porter-261779-unsplash.jpg' ], 'name' => 'Michael Smith', 'status_name' => 'Admin', 'date' => '3 days ago', 'earnings' => '12,402' ], [ 'avatar' => [ 'image' => '/vendor/flowdash/images/avatar/green.svg' ], 'name' => 'Connie Smith', 'email' => 'paolo.zieme@gmail.com', 'status_name' => 'User', 'status_class' => 'badge-success', 'date' => '1 week ago', 'earnings' => '1,943' ], [ 'avatar' => [ 'image' => '/vendor/flowdash/images/256_daniel-gaffey-1060698-unsplash.jpg' ], 'name' => 'John Connor', 'email' => 'vida_glover@gmail.com', 'status_name' => 'Manager', 'status_class' => 'badge-primary', 'date' => '2 weeks ago', 'earnings' => '1,401' ]] ]) @endcomponent

Search

Add search functionality to your tables with List.js. Please read the official plugin documentation for a full list of options.

@component('flowdash::components.staff-table', [ 'id' => 'search', 'checkboxes' => false, 'avatar' => false, 'employer' => false, 'projects' => false, 'pagination' => false, 'search' => true, 'items' => [[ 'selected' => true, 'name' => 'Michael Smith', 'status_name' => 'Admin', 'date' => '3 days ago', 'earnings' => '12,402' ], [ 'name' => 'Connie Smith', 'email' => 'paolo.zieme@gmail.com', 'status_name' => 'User', 'status_class' => 'badge-success', 'date' => '1 week ago', 'earnings' => '1,943' ], [ 'name' => 'John Connor', 'email' => 'vida_glover@gmail.com', 'status_name' => 'Manager', 'status_class' => 'badge-primary', 'date' => '2 weeks ago', 'earnings' => '1,401' ], [ 'selected' => true, 'name' => 'Michael Smith', 'status_name' => 'Admin', 'date' => '3 days ago', 'earnings' => '12,402' ], [ 'name' => 'Connie Smith', 'email' => 'paolo.zieme@gmail.com', 'status_name' => 'User', 'status_class' => 'badge-success', 'date' => '1 week ago', 'earnings' => '1,943' ], [ 'name' => 'John Connor', 'email' => 'vida_glover@gmail.com', 'status_name' => 'Manager', 'status_class' => 'badge-primary', 'date' => '2 weeks ago', 'earnings' => '1,401' ]] ]) @endcomponent

Sort Columns

Add sorting functionality to your tables with by List.js. Please read the official plugin documentation for a full list of options.

@component('flowdash::components.sort-table') @endcomponent
@endsection @section('footer') @endsection