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:00 | 13.05.2003 09:14:44 | Shipped mmm | | 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 | 131 | CL442705 | 12.03.2003 00:00:00 | 22292.62 | |
2 | 131 | MA724562 | 02.12.2004 00:00:00 | 50025.35 | |
3 | 141 | AU364101 | 19.07.2003 00:00:00 | 36251.03 | |
4 | 141 | DB583216 | 01.11.2004 00:00:00 | 36140.38 | |
5 | 141 | DL460618 | 19.05.2005 00:00:00 | 46895.48 | |
6 | 141 | HJ32686 | 30.01.2004 00:00:00 | 59830.55 | |
7 | 141 | ID10962 | 31.12.2004 00:00:00 | 116208.4 | |
8 | 141 | IN446258 | 25.03.2005 00:00:00 | 65071.26 | |
9 | 141 | JE105477 | 18.03.2005 00:00:00 | 120166.58 | |
10 | 141 | JN355280 | 26.10.2003 00:00:00 | 49539.37 | |