Multiple instances
Unlimited number of instances per page.
public function multiple_instances()
{
$xcrud1 = get_xcrud();
$xcrud1->table('orders');
$xcrud2 = get_xcrud();
$xcrud2->table('payments');
$data['content'] = $xcrud1->render();
$data['content'] .= $xcrud2->render();
return view('demos', $data);
}
Orders
Orders
# | Orderdate | Requireddate | Shippeddate | Status | Comments | Customernumber | |
1 | 08.05.2003 00:00:00 | 13.05.2003 00:00:57 | 13.05.2003 00:14:59 | In Process | | 353 | |
2 | 08.05.2003 00:00:00 | 16.05.2003 00:00:00 | 13.05.2003 00:00:00 | Shipped | | 350 | |
3 | 20.05.2003 00:00:00 | 29.05.2003 00:00:00 | 22.05.2003 00:00:00 | Shipped | | 103 | |
4 | 21.05.2003 00:00:00 | 29.05.2003 00:00:00 | 25.05.2003 00:00:00 | Shipped | Customer very concerned about the exact color of
| 112 | |
5 | 21.05.2003 00:00:00 | 27.05.2003 00:00:00 | 24.05.2003 00:00:00 | Shipped | | 114 | |
6 | 28.05.2003 00:00:00 | 07.06.2003 00:00:00 | 02.06.2003 00:00:00 | Shipped | egehg | 458 | |
7 | 03.06.2003 00:00:00 | 09.06.2003 00:00:00 | 06.06.2003 00:00:00 | Shipped | Customer requested special shippment. The
| 151 | |
8 | 06.06.2003 00:00:00 | 12.06.2003 00:00:00 | 11.06.2003 00:00:00 | Shipped | | 141 | |
9 | 12.06.2003 00:00:00 | 18.06.2003 00:00:00 | 14.06.2003 00:00:00 | Shipped | | 324 | |
10 | 16.06.2003 00:00:00 | 24.06.2003 00:00:00 | 21.06.2003 00:00:00 | Shipped | | 198 | |
Payments
Payments
# | Customernumber | Checknumber | Paymentdate | Amount | |
1 | 141 | IN446258 | 25.03.2005 00:00:00 | 65071.26 | |
2 | 141 | JE105477 | 18.03.2005 00:00:00 | 120166.58 | |
3 | 141 | JN355280 | 26.10.2003 00:00:00 | 49539.37 | |
4 | 141 | JN722010 | 25.02.2003 00:00:00 | 40206.2 | |
5 | 141 | KT52578 | 09.12.2003 00:00:00 | 63843.55 | |
6 | 141 | MC46946 | 09.07.2004 00:00:00 | 35420.74 | |
7 | 141 | NU627706 | 17.05.2004 00:00:00 | 26155.91 | |
8 | 144 | IR846303 | 12.12.2004 00:00:00 | 36005.71 | |
9 | 144 | LA685678 | 09.04.2003 00:00:00 | 7674.94 | |
10 | 145 | CN328545 | 03.07.2004 00:00:00 | 4710.73 | |