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

#OrderdateRequireddateShippeddateStatusCommentsCustomernumber 
108.05.2003 00:00:0013.05.2003 00:00:0013.05.2003 09:14:44Shipped mmm353
208.05.2003 00:00:0016.05.2003 00:00:0013.05.2003 00:00:00Shipped350
320.05.2003 00:00:0029.05.2003 00:00:0022.05.2003 00:00:00Shipped103
421.05.2003 00:00:0029.05.2003 00:00:0025.05.2003 00:00:00ShippedCustomer very concerned about the exact color of…112
521.05.2003 00:00:0027.05.2003 00:00:0024.05.2003 00:00:00Shipped114
628.05.2003 00:00:0007.06.2003 00:00:0002.06.2003 00:00:00Shippedegehg458
703.06.2003 00:00:0009.06.2003 00:00:0006.06.2003 00:00:00ShippedCustomer requested special shippment. The…151
806.06.2003 00:00:0012.06.2003 00:00:0011.06.2003 00:00:00Shipped141
912.06.2003 00:00:0018.06.2003 00:00:0014.06.2003 00:00:00Shipped324
1016.06.2003 00:00:0024.06.2003 00:00:0021.06.2003 00:00:00Shipped198
Search

Payments

#CustomernumberChecknumberPaymentdateAmount 
1131CL44270512.03.2003 00:00:0022292.62
2131MA72456202.12.2004 00:00:0050025.35
3141AU36410119.07.2003 00:00:0036251.03
4141DB58321601.11.2004 00:00:0036140.38
5141DL46061819.05.2005 00:00:0046895.48
6141HJ3268630.01.2004 00:00:0059830.55
7141ID1096231.12.2004 00:00:00116208.4
8141IN44625825.03.2005 00:00:0065071.26
9141JE10547718.03.2005 00:00:00120166.58
10141JN35528026.10.2003 00:00:0049539.37
Search