@extends('layouts.master') @section('main-content')
Due to the widespread use of tables across third-party widgets like calendars and date pickers, we’ve designed our tables to be opt-in. Just add the base class .table to any
table tag
, then extend with custom styles or our various included modifier classes.
invert the colors—with light text on dark backgrounds—with .table-dark.
| # | Name | Avatar | Status | Action | |
|---|---|---|---|---|---|
| 1 | Smith Doe |
|
Smith@gmail.com | Active | |
| 2 | Jhon Doe |
|
Jhon@gmail.com | Pending | |
| 3 | Alex |
|
Otto@gmail.com | Not Active |
Add .table-bordered for borders on all sides of the table and cells.
| # | Product | Date | Price | Status | Action |
|---|---|---|---|---|---|
| 1 | Watch | 12-10-2019 | $30 | Delivered | |
| 2 | Iphone | 23-10-2019 | $300 | Pending | |
| 3 | Watch | 12-10-2019 | $30 | Not Delivered |
Add .table-bordered for borders on all sides of the table and cells.
| # | Name | Avatar | Status | Action | |
|---|---|---|---|---|---|
| 1 | Smith Doe |
|
Smith@gmail.com | Active | |
| 2 | Jhon Doe |
|
Jhon@gmail.com | Pending | |
| 3 | Alex |
|
Otto@gmail.com | Not Active |
Add .table-hover to enable a hover state on table rows within a <tbody>.
| # | Name | Avatar | Status | Action | |
|---|---|---|---|---|---|
| 1 | Smith Doe |
|
Smith@gmail.com | Active | |
| 2 | Jhon Doe |
|
Jhon@gmail.com | Pending | |
| 3 | Alex |
|
Otto@gmail.com | Not Active |
Add .table-hover to enable a hover state on table rows within a <tbody>.
| # | Name | Avatar | Status | Action | |
|---|---|---|---|---|---|
| 1 | Smith Doe |
|
Smith@gmail.com | Active | |
| 2 | Jhon Doe |
|
Jhon@gmail.com | Pending | |
| 3 | Alex |
|
Otto@gmail.com | Not Active |
Add .table-sm to make tables more compact by cutting cell padding in half.
| # | Name | Avatar | Status | Action | |
|---|---|---|---|---|---|
| 1 | Smith Doe |
|
Smith@gmail.com | Active | |
| 2 | Jhon Doe |
|
Jhon@gmail.com | Pending | |
| 3 | Alex |
|
Otto@gmail.com | Not Active |
Add .table-sm to make tables more compact by cutting cell padding in half.
| # | Name | Avatar | Status | Action | |
|---|---|---|---|---|---|
| 1 | Smith Doe |
|
Smith@gmail.com | Active | |
| 2 | Jhon Doe |
|
Jhon@gmail.com | Pending | |
| 3 | Alex |
|
Otto@gmail.com | Not Active |
Use contextual classes to color table rows or individual cells.
| # | First | Last | Handle | Handle 2 | Handle 3 | Handle 4 |
|---|---|---|---|---|---|---|
| 1 | Mark | Otto | @mdo | @mdo | @mdo | @mdo |
| 1 | Mark | Otto | @mdo | @mdo | @mdo | @mdo |
| 1 | Mark | Otto | @mdo | @mdo | @mdo | @mdo |
| 1 | Mark | Otto | @mdo | @mdo | @mdo | @mdo |
| 1 | Mark | Otto | @mdo | @mdo | @mdo | @mdo |
| ... | ... | ... | ... | ... | ... | ... |
Regular table background variants are not available with the dark table, however, you may use text or background utilities to achieve similar styles.
| # | First | Last | Handle | Handle 2 | Handle 3 | Handle 4 |
|---|---|---|---|---|---|---|
| 1 | Mark | Otto | @mdo | @mdo | @mdo | @mdo |
| 1 | Mark | Otto | @mdo | @mdo | @mdo | @mdo |
| 1 | Mark | Otto | @mdo | @mdo | @mdo | @mdo |
| 1 | Mark | Otto | @mdo | @mdo | @mdo | @mdo |
| 1 | Mark | Otto | @mdo | @mdo | @mdo | @mdo |
| ... | ... | ... | ... | ... | ... | ... |
A <caption> functions like a heading for a table. It helps users with screen readers to find a table and understand what it’s about and decide if they want to read it.
| # | Name | Avatar | Status | Action | |
|---|---|---|---|---|---|
| 1 | Smith Doe |
|
Smith@gmail.com | Active | |
| 2 | Jhon Doe |
|
Jhon@gmail.com | Pending | |
| 3 | Alex |
|
Otto@gmail.com | Not Active |
A <caption> functions like a heading for a table. It helps users with screen readers to find a table and understand what it’s about and decide if they want to read it.
| # | Name | Avatar | Status | Action | |
|---|---|---|---|---|---|
| 1 | Smith Doe |
|
Smith@gmail.com | Active | |
| 2 | Jhon Doe |
|
Jhon@gmail.com | Pending | |
| 3 | Alex |
|
Otto@gmail.com | Not Active |
Responsive tables allow tables to be scrolled horizontally with ease. Make any table responsive across all viewports by wrapping a .table with .table-responsive. Or, pick a maximum breakpoint with
which to have a responsive table up to by using .table-responsive{-sm|-md|-lg|-xl}.
Responsive tables allow tables to be scrolled horizontally with ease. Make any table responsive across all viewports by wrapping a .table with .table-responsive. Or, pick a maximum breakpoint with
which to have a responsive table up to by using .table-responsive{-sm|-md|-lg|-xl}.