Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function test()
- {
- $array =
- [
- "products" => [
- 2121 => [
- "id" => "2121",
- "product_id" => "45",
- "client_id" => "4935",
- "ticket_id" => "5175",
- "sold_by" => "14",
- "sold_from_date" => 1455229948,
- "sold_to_date" => 1486852348,
- "product_price" => "31,602",
- "subscription_month" => "12",
- "is_renewed" => "0",
- "renewed_for" => 0,
- "is_trial" => "0",
- "service_stopped" => "0",
- "discount_given" => "8",
- "ivr_minutes" => "0",
- "locations" => null,
- "credits" => "0",
- "invoice_generated" => "1",
- "estimate_number" => "",
- "invoice_generated_on" => "2016-01-28 04:02:41",
- "tax_invoice_number" => "",
- "tax_invoice_added_on" => "",
- "updated_by" => "14",
- "created_at" => 1453933948,
- "version" => "1",
- "cheques" => [
- 0 => [
- "id" => "2599",
- "uid" => "74e557",
- "client_id" => "4935",
- "product_sold_details_id" => "0",
- "cheque_number" => "000006",
- "amount" => "8106",
- "cheque_date" => 1453467600,
- "deposit_date" => -62170005200,
- "cheque_status" => "0",
- "report_reason" => "0",
- "cheque_type" => "2",
- "parent_of_bounced" => "0",
- "bank" => "",
- "verified_on" => -62170005200,
- "deposited_on" => -62170005200,
- "realized_on" => -62170005200,
- "bounced_on" => -62170005200,
- "stopped_on" => -62170005200,
- "added_by" => "14",
- "modified_by" => "14",
- "created_at" => 1453986009,
- "pivot" => [
- "product_sold_id" => "2121",
- "product_cheques_id" => "2599",
- ],
- ],
- 1 => [
- "id" => "2600",
- "uid" => "61fe77",
- "client_id" => "4935",
- "product_sold_details_id" => "0",
- "cheque_number" => "000007",
- "amount" => "8106",
- "cheque_date" => 1457701200,
- "deposit_date" => -62170005200,
- "cheque_status" => "0",
- "report_reason" => "0",
- "cheque_type" => "1",
- "parent_of_bounced" => "0",
- "bank" => "",
- "verified_on" => -62170005200,
- "deposited_on" => -62170005200,
- "realized_on" => -62170005200,
- "bounced_on" => -62170005200,
- "stopped_on" => -62170005200,
- "added_by" => "14",
- "modified_by" => "14",
- "created_at" => 1453986009,
- "pivot" => [
- "product_sold_id" => "2121",
- "product_cheques_id" => "2600",
- ],
- ],
- 2 => [
- "id" => "2601",
- "uid" => "330390",
- "client_id" => "4935",
- "product_sold_details_id" => "0",
- "cheque_number" => "000008",
- "amount" => "8106",
- "cheque_date" => 1461762000,
- "deposit_date" => -62170005200,
- "cheque_status" => "0",
- "report_reason" => "0",
- "cheque_type" => "1",
- "parent_of_bounced" => "0",
- "bank" => "",
- "verified_on" => -62170005200,
- "deposited_on" => -62170005200,
- "realized_on" => -62170005200,
- "bounced_on" => -62170005200,
- "stopped_on" => -62170005200,
- "added_by" => "14",
- "modified_by" => "14",
- "created_at" => 1453986009,
- "pivot" => [
- "product_sold_id" => "2121",
- "product_cheques_id" => "2601",
- ],
- ],
- 3 => [
- "id" => "2602",
- "uid" => "ddc4a3",
- "client_id" => "4935",
- "product_sold_details_id" => "0",
- "cheque_number" => "000009",
- "amount" => "8106",
- "cheque_date" => 1465650000,
- "deposit_date" => -62170005200,
- "cheque_status" => "0",
- "report_reason" => "0",
- "cheque_type" => "1",
- "parent_of_bounced" => "0",
- "bank" => "",
- "verified_on" => -62170005200,
- "deposited_on" => -62170005200,
- "realized_on" => -62170005200,
- "bounced_on" => -62170005200,
- "stopped_on" => -62170005200,
- "added_by" => "14",
- "modified_by" => "14",
- "created_at" => 1453986009,
- "pivot" => [
- "product_sold_id" => "2121",
- "product_cheques_id" => "2602",
- ],
- ],
- 4 => [
- "id" => "2603",
- "uid" => "7cbc86",
- "client_id" => "4935",
- "product_sold_details_id" => "0",
- "cheque_number" => "000010",
- "amount" => "8106",
- "cheque_date" => 1472302800,
- "deposit_date" => -62170005200,
- "cheque_status" => "0",
- "report_reason" => "0",
- "cheque_type" => "1",
- "parent_of_bounced" => "0",
- "bank" => "",
- "verified_on" => -62170005200,
- "deposited_on" => -62170005200,
- "realized_on" => -62170005200,
- "bounced_on" => -62170005200,
- "stopped_on" => -62170005200,
- "added_by" => "14",
- "modified_by" => "14",
- "created_at" => 1453986009,
- "pivot" => [
- "product_sold_id" => "2121",
- "product_cheques_id" => "2603",
- ],
- ],
- ],
- "cash" => [],
- "net_banking" => [],
- "product" => [
- "id" => "45",
- "product_name" => "Minimal Package",
- ],
- "renewed" => [],
- ],
- 2122 => [
- "id" => "2122",
- "product_id" => "21",
- "client_id" => "4935",
- "ticket_id" => "5175",
- "sold_by" => "14",
- "sold_from_date" => 1455229948,
- "sold_to_date" => 1486852348,
- "product_price" => "8,931",
- "subscription_month" => "12",
- "is_renewed" => "0",
- "renewed_for" => 0,
- "is_trial" => "0",
- "service_stopped" => "0",
- "discount_given" => "0",
- "ivr_minutes" => "0",
- "locations" => null,
- "credits" => "0",
- "invoice_generated" => "1",
- "estimate_number" => "",
- "invoice_generated_on" => "2016-01-28 04:04:26",
- "tax_invoice_number" => "",
- "tax_invoice_added_on" => "",
- "updated_by" => "14",
- "created_at" => 1453933948,
- "version" => "1",
- "cheques" => [
- 0 => [
- "id" => "2599",
- "uid" => "74e557",
- "client_id" => "4935",
- "product_sold_details_id" => "0",
- "cheque_number" => "000006",
- "amount" => "8106",
- "cheque_date" => 1453467600,
- "deposit_date" => -62170005200,
- "cheque_status" => "0",
- "report_reason" => "0",
- "cheque_type" => "2",
- "parent_of_bounced" => "0",
- "bank" => "",
- "verified_on" => -62170005200,
- "deposited_on" => -62170005200,
- "realized_on" => -62170005200,
- "bounced_on" => -62170005200,
- "stopped_on" => -62170005200,
- "added_by" => "14",
- "modified_by" => "14",
- "created_at" => 1453986009,
- "pivot" => [
- "product_sold_id" => "2122",
- "product_cheques_id" => "2599",
- ],
- ],
- 1 => [
- "id" => "2600",
- "uid" => "61fe77",
- "client_id" => "4935",
- "product_sold_details_id" => "0",
- "cheque_number" => "000007",
- "amount" => "8106",
- "cheque_date" => 1457701200,
- "deposit_date" => -62170005200,
- "cheque_status" => "0",
- "report_reason" => "0",
- "cheque_type" => "1",
- "parent_of_bounced" => "0",
- "bank" => "",
- "verified_on" => -62170005200,
- "deposited_on" => -62170005200,
- "realized_on" => -62170005200,
- "bounced_on" => -62170005200,
- "stopped_on" => -62170005200,
- "added_by" => "14",
- "modified_by" => "14",
- "created_at" => 1453986009,
- "pivot" => [
- "product_sold_id" => "2122",
- "product_cheques_id" => "2600",
- ],
- ],
- 2 => [
- "id" => "2601",
- "uid" => "330390",
- "client_id" => "4935",
- "product_sold_details_id" => "0",
- "cheque_number" => "000008",
- "amount" => "8106",
- "cheque_date" => 1461762000,
- "deposit_date" => -62170005200,
- "cheque_status" => "0",
- "report_reason" => "0",
- "cheque_type" => "1",
- "parent_of_bounced" => "0",
- "bank" => "",
- "verified_on" => -62170005200,
- "deposited_on" => -62170005200,
- "realized_on" => -62170005200,
- "bounced_on" => -62170005200,
- "stopped_on" => -62170005200,
- "added_by" => "14",
- "modified_by" => "14",
- "created_at" => 1453986009,
- "pivot" => [
- "product_sold_id" => "2122",
- "product_cheques_id" => "2601",
- ],
- ],
- 3 => [
- "id" => "2602",
- "uid" => "ddc4a3",
- "client_id" => "4935",
- "product_sold_details_id" => "0",
- "cheque_number" => "000009",
- "amount" => "8106",
- "cheque_date" => 1465650000,
- "deposit_date" => -62170005200,
- "cheque_status" => "0",
- "report_reason" => "0",
- "cheque_type" => "1",
- "parent_of_bounced" => "0",
- "bank" => "",
- "verified_on" => -62170005200,
- "deposited_on" => -62170005200,
- "realized_on" => -62170005200,
- "bounced_on" => -62170005200,
- "stopped_on" => -62170005200,
- "added_by" => "14",
- "modified_by" => "14",
- "created_at" => 1453986009,
- "pivot" => [
- "product_sold_id" => "2122",
- "product_cheques_id" => "2602",
- ],
- ],
- 4 => [
- "id" => "2603",
- "uid" => "7cbc86",
- "client_id" => "4935",
- "product_sold_details_id" => "0",
- "cheque_number" => "000010",
- "amount" => "8106",
- "cheque_date" => 1472302800,
- "deposit_date" => -62170005200,
- "cheque_status" => "0",
- "report_reason" => "0",
- "cheque_type" => "1",
- "parent_of_bounced" => "0",
- "bank" => "",
- "verified_on" => -62170005200,
- "deposited_on" => -62170005200,
- "realized_on" => -62170005200,
- "bounced_on" => -62170005200,
- "stopped_on" => -62170005200,
- "added_by" => "14",
- "modified_by" => "14",
- "created_at" => 1453986009,
- "pivot" => [
- "product_sold_id" => "2122",
- "product_cheques_id" => "2603",
- ],
- ],
- ],
- "cash" => [],
- "net_banking" => [],
- "product" => [
- "id" => "21",
- "product_name" => "IVR 500",
- ],
- "renewed" => [],
- ],
- ],
- "status" => 200,
- ];
- return response()->json($array)->setEncodingOptions(JSON_NUMERIC_CHECK);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement