@extends('layouts.backend') @section('extraCss') @endsection @section('mainContentArea')
# | Source | barcode | Article | Color | Size | Mrp | From_type | From | TO | Date | REF |
---|---|---|---|---|---|---|---|---|---|---|---|
{{ $counter++ }} | {{ $bar_value['source'] }} | {{ $bar_value['barcode'] }} | {{ $wpro->article }} | {{ $wpro->color }} | {{ $wpro->size }} | {{ $wpro->mrp }} | {{ $bar_value['from_type'] }} | @php if($bar_value['from_type'] == "GR party" || $bar_value['from_type'] == "Supplier to Warehouse" || $bar_value['from_type'] == "Warehouse to Party"){ if($bar_value['from'] ==1 || $bar_value['from'] ==2){ $sql=\DB::table('oc_warehouses')->where('id',$bar_value['from'])->first(); $name = !empty($sql) ? $sql->name : $bar_value['from']; print_r($name); } else{ $sql=\DB::table('oc_wh_suppliers')->where('id',$bar_value['from'])->first(); $name = !empty($sql) ? $sql->company_name : $bar_value['from']; print_r($name); } }else{ $sql=\DB::table('oc_warehouses')->where('id',$bar_value['from'])->first(); $name = !empty($sql) ? $sql->name : $bar_value['from']; print_r($name); } @endphp | @php if($bar_value['from_type'] == "GR party" || $bar_value['from_type'] == "Supplier to Warehouse" || $bar_value['from_type'] == "Warehouse to Party"){ if($bar_value['to'] ==1 || $bar_value['to'] ==2){ $sql=\DB::table('oc_warehouses')->where('id',$bar_value['to'])->first(); $name = !empty($sql) ? $sql->name : $bar_value['to']; print_r($name); } else{ $sql=\DB::table('oc_wh_suppliers')->where('id',$bar_value['to'])->first(); $name = !empty($sql) ? $sql->company_name : $bar_value['to']; print_r($name); } }else{ $sql=\DB::table('oc_warehouses')->where('id',$bar_value['to'])->first(); $name = !empty($sql) ? $sql->name : $bar_value['to']; print_r($name); } @endphp | {{ $bar_value['date'] }} | {{ $bar_value['ref'] }} |
{{ $counter++ }} | {{ $bar_value['source'] }} | {{ $bar_value['barcode'] }} | {{ $wpro->article }} | {{ $wpro->color }} | {{ $wpro->size }} | {{ $wpro->mrp }} | {{ $bar_value['from_type'] }} | @php if($bar_value['from_type'] == "GR party" || $bar_value['from_type'] == "Supplier to Warehouse" || $bar_value['from_type'] == "Warehouse to Party"){ if($bar_value['from'] ==1 || $bar_value['from'] ==2){ $sql=\DB::table('oc_warehouses')->where('id',$bar_value['from'])->first(); $name = !empty($sql) ? $sql->name : $bar_value['from']; print_r($name); } else{ $sql=\DB::table('oc_wh_suppliers')->where('id',$bar_value['from'])->first(); $name = !empty($sql) ? $sql->company_name : $bar_value['from']; print_r($name); } }else{ $sql=\DB::table('oc_warehouses')->where('id',$bar_value['from'])->first(); $name = !empty($sql) ? $sql->name : $bar_value['from']; print_r($name); } @endphp | @php if($bar_value['from_type'] == "GR party" || $bar_value['from_type'] == "Supplier to Warehouse" || $bar_value['from_type'] == "Warehouse to Party"){ if($bar_value['to'] ==1 || $bar_value['to'] ==2){ $sql=\DB::table('oc_warehouses')->where('id',$bar_value['to'])->first(); $name = !empty($sql) ? $sql->name : $bar_value['to']; print_r($name); } else{ $sql=\DB::table('oc_wh_suppliers')->where('id',$bar_value['to'])->first(); $name = !empty($sql) ? $sql->company_name : $bar_value['to']; print_r($name); } }else{ $sql=\DB::table('oc_warehouses')->where('id',$bar_value['to'])->first(); $name = !empty($sql) ? $sql->name : $bar_value['to']; print_r($name); } @endphp | {{ $bar_value['date'] }} | {{ $bar_value['ref'] }} |