Advertisement
Guest User

Untitled

a guest
Apr 15th, 2016
514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 12.20 KB | None | 0 0
  1.     public function test()
  2.     {
  3.         $array =
  4.             [
  5.               "products" => [
  6.                 2121 => [
  7.                   "id" => "2121",
  8.                   "product_id" => "45",
  9.                   "client_id" => "4935",
  10.                   "ticket_id" => "5175",
  11.                   "sold_by" => "14",
  12.                   "sold_from_date" => 1455229948,
  13.                   "sold_to_date" => 1486852348,
  14.                   "product_price" => "31,602",
  15.                   "subscription_month" => "12",
  16.                   "is_renewed" => "0",
  17.                   "renewed_for" => 0,
  18.                   "is_trial" => "0",
  19.                   "service_stopped" => "0",
  20.                   "discount_given" => "8",
  21.                   "ivr_minutes" => "0",
  22.                   "locations" => null,
  23.                   "credits" => "0",
  24.                   "invoice_generated" => "1",
  25.                   "estimate_number" => "",
  26.                   "invoice_generated_on" => "2016-01-28 04:02:41",
  27.                   "tax_invoice_number" => "",
  28.                   "tax_invoice_added_on" => "",
  29.                   "updated_by" => "14",
  30.                   "created_at" => 1453933948,
  31.                   "version" => "1",
  32.                   "cheques" => [
  33.                     0 => [
  34.                       "id" => "2599",
  35.                       "uid" => "74e557",
  36.                       "client_id" => "4935",
  37.                       "product_sold_details_id" => "0",
  38.                       "cheque_number" => "000006",
  39.                       "amount" => "8106",
  40.                       "cheque_date" => 1453467600,
  41.                       "deposit_date" => -62170005200,
  42.                       "cheque_status" => "0",
  43.                       "report_reason" => "0",
  44.                       "cheque_type" => "2",
  45.                       "parent_of_bounced" => "0",
  46.                       "bank" => "",
  47.                       "verified_on" => -62170005200,
  48.                       "deposited_on" => -62170005200,
  49.                       "realized_on" => -62170005200,
  50.                       "bounced_on" => -62170005200,
  51.                       "stopped_on" => -62170005200,
  52.                       "added_by" => "14",
  53.                       "modified_by" => "14",
  54.                       "created_at" => 1453986009,
  55.                       "pivot" => [
  56.                         "product_sold_id" => "2121",
  57.                         "product_cheques_id" => "2599",
  58.                       ],
  59.                     ],
  60.                     1 => [
  61.                       "id" => "2600",
  62.                       "uid" => "61fe77",
  63.                       "client_id" => "4935",
  64.                       "product_sold_details_id" => "0",
  65.                       "cheque_number" => "000007",
  66.                       "amount" => "8106",
  67.                       "cheque_date" => 1457701200,
  68.                       "deposit_date" => -62170005200,
  69.                       "cheque_status" => "0",
  70.                       "report_reason" => "0",
  71.                       "cheque_type" => "1",
  72.                       "parent_of_bounced" => "0",
  73.                       "bank" => "",
  74.                       "verified_on" => -62170005200,
  75.                       "deposited_on" => -62170005200,
  76.                       "realized_on" => -62170005200,
  77.                       "bounced_on" => -62170005200,
  78.                       "stopped_on" => -62170005200,
  79.                       "added_by" => "14",
  80.                       "modified_by" => "14",
  81.                       "created_at" => 1453986009,
  82.                       "pivot" => [
  83.                         "product_sold_id" => "2121",
  84.                         "product_cheques_id" => "2600",
  85.                       ],
  86.                     ],
  87.                     2 => [
  88.                       "id" => "2601",
  89.                       "uid" => "330390",
  90.                       "client_id" => "4935",
  91.                       "product_sold_details_id" => "0",
  92.                       "cheque_number" => "000008",
  93.                       "amount" => "8106",
  94.                       "cheque_date" => 1461762000,
  95.                       "deposit_date" => -62170005200,
  96.                       "cheque_status" => "0",
  97.                       "report_reason" => "0",
  98.                       "cheque_type" => "1",
  99.                       "parent_of_bounced" => "0",
  100.                       "bank" => "",
  101.                       "verified_on" => -62170005200,
  102.                       "deposited_on" => -62170005200,
  103.                       "realized_on" => -62170005200,
  104.                       "bounced_on" => -62170005200,
  105.                       "stopped_on" => -62170005200,
  106.                       "added_by" => "14",
  107.                       "modified_by" => "14",
  108.                       "created_at" => 1453986009,
  109.                       "pivot" => [
  110.                         "product_sold_id" => "2121",
  111.                         "product_cheques_id" => "2601",
  112.                       ],
  113.                     ],
  114.                     3 => [
  115.                       "id" => "2602",
  116.                       "uid" => "ddc4a3",
  117.                       "client_id" => "4935",
  118.                       "product_sold_details_id" => "0",
  119.                       "cheque_number" => "000009",
  120.                       "amount" => "8106",
  121.                       "cheque_date" => 1465650000,
  122.                       "deposit_date" => -62170005200,
  123.                       "cheque_status" => "0",
  124.                       "report_reason" => "0",
  125.                       "cheque_type" => "1",
  126.                       "parent_of_bounced" => "0",
  127.                       "bank" => "",
  128.                       "verified_on" => -62170005200,
  129.                       "deposited_on" => -62170005200,
  130.                       "realized_on" => -62170005200,
  131.                       "bounced_on" => -62170005200,
  132.                       "stopped_on" => -62170005200,
  133.                       "added_by" => "14",
  134.                       "modified_by" => "14",
  135.                       "created_at" => 1453986009,
  136.                       "pivot" => [
  137.                         "product_sold_id" => "2121",
  138.                         "product_cheques_id" => "2602",
  139.                       ],
  140.                     ],
  141.                     4 => [
  142.                       "id" => "2603",
  143.                       "uid" => "7cbc86",
  144.                       "client_id" => "4935",
  145.                       "product_sold_details_id" => "0",
  146.                       "cheque_number" => "000010",
  147.                       "amount" => "8106",
  148.                       "cheque_date" => 1472302800,
  149.                       "deposit_date" => -62170005200,
  150.                       "cheque_status" => "0",
  151.                       "report_reason" => "0",
  152.                       "cheque_type" => "1",
  153.                       "parent_of_bounced" => "0",
  154.                       "bank" => "",
  155.                       "verified_on" => -62170005200,
  156.                       "deposited_on" => -62170005200,
  157.                       "realized_on" => -62170005200,
  158.                       "bounced_on" => -62170005200,
  159.                       "stopped_on" => -62170005200,
  160.                       "added_by" => "14",
  161.                       "modified_by" => "14",
  162.                       "created_at" => 1453986009,
  163.                       "pivot" => [
  164.                         "product_sold_id" => "2121",
  165.                         "product_cheques_id" => "2603",
  166.                       ],
  167.                     ],
  168.                   ],
  169.                   "cash" => [],
  170.                   "net_banking" => [],
  171.                   "product" => [
  172.                     "id" => "45",
  173.                     "product_name" => "Minimal Package",
  174.                   ],
  175.                   "renewed" => [],
  176.                 ],
  177.                 2122 => [
  178.                   "id" => "2122",
  179.                   "product_id" => "21",
  180.                   "client_id" => "4935",
  181.                   "ticket_id" => "5175",
  182.                   "sold_by" => "14",
  183.                   "sold_from_date" => 1455229948,
  184.                   "sold_to_date" => 1486852348,
  185.                   "product_price" => "8,931",
  186.                   "subscription_month" => "12",
  187.                   "is_renewed" => "0",
  188.                   "renewed_for" => 0,
  189.                   "is_trial" => "0",
  190.                   "service_stopped" => "0",
  191.                   "discount_given" => "0",
  192.                   "ivr_minutes" => "0",
  193.                   "locations" => null,
  194.                   "credits" => "0",
  195.                   "invoice_generated" => "1",
  196.                   "estimate_number" => "",
  197.                   "invoice_generated_on" => "2016-01-28 04:04:26",
  198.                   "tax_invoice_number" => "",
  199.                   "tax_invoice_added_on" => "",
  200.                   "updated_by" => "14",
  201.                   "created_at" => 1453933948,
  202.                   "version" => "1",
  203.                   "cheques" => [
  204.                     0 => [
  205.                       "id" => "2599",
  206.                       "uid" => "74e557",
  207.                       "client_id" => "4935",
  208.                       "product_sold_details_id" => "0",
  209.                       "cheque_number" => "000006",
  210.                       "amount" => "8106",
  211.                       "cheque_date" => 1453467600,
  212.                       "deposit_date" => -62170005200,
  213.                       "cheque_status" => "0",
  214.                       "report_reason" => "0",
  215.                       "cheque_type" => "2",
  216.                       "parent_of_bounced" => "0",
  217.                       "bank" => "",
  218.                       "verified_on" => -62170005200,
  219.                       "deposited_on" => -62170005200,
  220.                       "realized_on" => -62170005200,
  221.                       "bounced_on" => -62170005200,
  222.                       "stopped_on" => -62170005200,
  223.                       "added_by" => "14",
  224.                       "modified_by" => "14",
  225.                       "created_at" => 1453986009,
  226.                       "pivot" => [
  227.                         "product_sold_id" => "2122",
  228.                         "product_cheques_id" => "2599",
  229.                       ],
  230.                     ],
  231.                     1 => [
  232.                       "id" => "2600",
  233.                       "uid" => "61fe77",
  234.                       "client_id" => "4935",
  235.                       "product_sold_details_id" => "0",
  236.                       "cheque_number" => "000007",
  237.                       "amount" => "8106",
  238.                       "cheque_date" => 1457701200,
  239.                       "deposit_date" => -62170005200,
  240.                       "cheque_status" => "0",
  241.                       "report_reason" => "0",
  242.                       "cheque_type" => "1",
  243.                       "parent_of_bounced" => "0",
  244.                       "bank" => "",
  245.                       "verified_on" => -62170005200,
  246.                       "deposited_on" => -62170005200,
  247.                       "realized_on" => -62170005200,
  248.                       "bounced_on" => -62170005200,
  249.                       "stopped_on" => -62170005200,
  250.                       "added_by" => "14",
  251.                       "modified_by" => "14",
  252.                       "created_at" => 1453986009,
  253.                       "pivot" => [
  254.                         "product_sold_id" => "2122",
  255.                         "product_cheques_id" => "2600",
  256.                       ],
  257.                     ],
  258.                     2 => [
  259.                       "id" => "2601",
  260.                       "uid" => "330390",
  261.                       "client_id" => "4935",
  262.                       "product_sold_details_id" => "0",
  263.                       "cheque_number" => "000008",
  264.                       "amount" => "8106",
  265.                       "cheque_date" => 1461762000,
  266.                       "deposit_date" => -62170005200,
  267.                       "cheque_status" => "0",
  268.                       "report_reason" => "0",
  269.                       "cheque_type" => "1",
  270.                       "parent_of_bounced" => "0",
  271.                       "bank" => "",
  272.                       "verified_on" => -62170005200,
  273.                       "deposited_on" => -62170005200,
  274.                       "realized_on" => -62170005200,
  275.                       "bounced_on" => -62170005200,
  276.                       "stopped_on" => -62170005200,
  277.                       "added_by" => "14",
  278.                       "modified_by" => "14",
  279.                       "created_at" => 1453986009,
  280.                       "pivot" => [
  281.                         "product_sold_id" => "2122",
  282.                         "product_cheques_id" => "2601",
  283.                       ],
  284.                     ],
  285.                     3 => [
  286.                       "id" => "2602",
  287.                       "uid" => "ddc4a3",
  288.                       "client_id" => "4935",
  289.                       "product_sold_details_id" => "0",
  290.                       "cheque_number" => "000009",
  291.                       "amount" => "8106",
  292.                       "cheque_date" => 1465650000,
  293.                       "deposit_date" => -62170005200,
  294.                       "cheque_status" => "0",
  295.                       "report_reason" => "0",
  296.                       "cheque_type" => "1",
  297.                       "parent_of_bounced" => "0",
  298.                       "bank" => "",
  299.                       "verified_on" => -62170005200,
  300.                       "deposited_on" => -62170005200,
  301.                       "realized_on" => -62170005200,
  302.                       "bounced_on" => -62170005200,
  303.                       "stopped_on" => -62170005200,
  304.                       "added_by" => "14",
  305.                       "modified_by" => "14",
  306.                       "created_at" => 1453986009,
  307.                       "pivot" => [
  308.                         "product_sold_id" => "2122",
  309.                         "product_cheques_id" => "2602",
  310.                       ],
  311.                     ],
  312.                     4 => [
  313.                       "id" => "2603",
  314.                       "uid" => "7cbc86",
  315.                       "client_id" => "4935",
  316.                       "product_sold_details_id" => "0",
  317.                       "cheque_number" => "000010",
  318.                       "amount" => "8106",
  319.                       "cheque_date" => 1472302800,
  320.                       "deposit_date" => -62170005200,
  321.                       "cheque_status" => "0",
  322.                       "report_reason" => "0",
  323.                       "cheque_type" => "1",
  324.                       "parent_of_bounced" => "0",
  325.                       "bank" => "",
  326.                       "verified_on" => -62170005200,
  327.                       "deposited_on" => -62170005200,
  328.                       "realized_on" => -62170005200,
  329.                       "bounced_on" => -62170005200,
  330.                       "stopped_on" => -62170005200,
  331.                       "added_by" => "14",
  332.                       "modified_by" => "14",
  333.                       "created_at" => 1453986009,
  334.                       "pivot" => [
  335.                         "product_sold_id" => "2122",
  336.                         "product_cheques_id" => "2603",
  337.                       ],
  338.                     ],
  339.                   ],
  340.                   "cash" => [],
  341.                   "net_banking" => [],
  342.                   "product" => [
  343.                     "id" => "21",
  344.                     "product_name" => "IVR 500",
  345.                   ],
  346.                   "renewed" => [],
  347.                 ],
  348.               ],
  349.               "status" => 200,
  350.             ];     
  351.        
  352.         return response()->json($array)->setEncodingOptions(JSON_NUMERIC_CHECK);
  353.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement