SHARE
TWEET

Untitled

a guest Jun 25th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @foreach($ezpos_product_sale_data as $product_sale_data)
  2.  
  3.         @php
  4.  
  5.         $productIds = $ezpos_product_sale_data->pluck('product_id');
  6.         $ezpos_product_data = AppProduct::whereIn('id', $productIds)->select('name as descripcion', 'type as unidad_de_medida', 'code as codigo')->get()->toArray();
  7.         $slid = $product_sale_data->sale_id;
  8.         $lproductos = $product_sale_data::where('sale_id', '=', $slid)->select('net_unit_price as precio')->get()->toArray();
  9.  
  10.         @endphp
  11.  
  12.  
  13.     @endforeach
  14.      
  15. array(3) {
  16.   [0]=>
  17.   array(1) {
  18.     ["precio"]=>
  19.     float(800)
  20.   }
  21.   [1]=>
  22.   array(1) {
  23.     ["precio"]=>
  24.     float(1000)
  25.   }
  26.   [2]=>
  27.   array(1) {
  28.     ["precio"]=>
  29.     float(1200)
  30.   }
  31. }
  32.  
  33.  
  34. array(3) {
  35.   [0]=>
  36.   array(3) {
  37.     ["descripcion"]=>
  38.     string(8) "IPhone X"
  39.     ["unidad_de_medida"]=>
  40.     string(8) "standard"
  41.     ["codigo"]=>
  42.     string(8) "07739340"
  43.   }
  44.   [1]=>
  45.   array(3) {
  46.     ["descripcion"]=>
  47.     string(12) "Spectre x360"
  48.     ["unidad_de_medida"]=>
  49.     string(8) "standard"
  50.     ["codigo"]=>
  51.     string(8) "52932406"
  52.   }
  53.   [2]=>
  54.   array(3) {
  55.     ["descripcion"]=>
  56.     string(11) "Mac AirBook"
  57.     ["unidad_de_medida"]=>
  58.     string(8) "standard"
  59.     ["codigo"]=>
  60.     string(8) "34807601"
  61.   }
  62. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top