Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @foreach($ezpos_product_sale_data as $product_sale_data)
- @php
- $productIds = $ezpos_product_sale_data->pluck('product_id');
- $ezpos_product_data = AppProduct::whereIn('id', $productIds)->select('name as descripcion', 'type as unidad_de_medida', 'code as codigo')->get()->toArray();
- $slid = $product_sale_data->sale_id;
- $lproductos = $product_sale_data::where('sale_id', '=', $slid)->select('net_unit_price as precio')->get()->toArray();
- @endphp
- @endforeach
- array(3) {
- [0]=>
- array(1) {
- ["precio"]=>
- float(800)
- }
- [1]=>
- array(1) {
- ["precio"]=>
- float(1000)
- }
- [2]=>
- array(1) {
- ["precio"]=>
- float(1200)
- }
- }
- array(3) {
- [0]=>
- array(3) {
- ["descripcion"]=>
- string(8) "IPhone X"
- ["unidad_de_medida"]=>
- string(8) "standard"
- ["codigo"]=>
- string(8) "07739340"
- }
- [1]=>
- array(3) {
- ["descripcion"]=>
- string(12) "Spectre x360"
- ["unidad_de_medida"]=>
- string(8) "standard"
- ["codigo"]=>
- string(8) "52932406"
- }
- [2]=>
- array(3) {
- ["descripcion"]=>
- string(11) "Mac AirBook"
- ["unidad_de_medida"]=>
- string(8) "standard"
- ["codigo"]=>
- string(8) "34807601"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement