insert([ [ 'id' => 8, 'user_id' => 6, 'contract_obligation_id' => 11, // Librarian verify customer membership and book 'depend_contract_obligation_id' => 10, // Customer select book (borrow) & show membership card 'status' => 1, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s') ], [ 'id' => 9, 'user_id' => 6, 'contract_obligation_id' => 12, // Customer Get the book 'depend_contract_obligation_id' => 11, // Librarian verify customer membership and book 'status' => 1, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s') ], [ 'id' => 10, 'user_id' => 6, 'contract_obligation_id' => 13, // Customer Return book 'depend_contract_obligation_id' => 12, // Customer Get the book 'status' => 1, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s') ], [ 'id' => 11, 'user_id' => 6, 'contract_obligation_id' => 14, // Librarian check the book 'depend_contract_obligation_id' => 13, // Customer Return book 'status' => 1, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s') ], [ 'id' => 12, 'user_id' => 6, 'contract_obligation_id' => 15, // Librarian update customer borrow record 'depend_contract_obligation_id' => 14, // Librarian check the book 'status' => 1, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s') ] ]); } }