|
|
@ -72,7 +72,7 @@ class OrderController extends AdminController |
|
|
|
|
|
|
|
|
$row = []; |
|
|
$row = []; |
|
|
foreach($item as $v) { |
|
|
foreach($item as $v) { |
|
|
$picture = $v->product->picture ? Storage::disk('public')->url($v->product->picture) : ''; |
|
|
|
|
|
|
|
|
$picture = !is_null($v->product->picture) ? Storage::disk('public')->url($v->product->picture) : ''; |
|
|
$row[] = [ |
|
|
$row[] = [ |
|
|
$v->product->title ?? '', |
|
|
$v->product->title ?? '', |
|
|
'<img data-action="preview-img" src="' . $picture . '" style="max-width:120px;max-height:200px;cursor:pointer" class="img img-thumbnail">', |
|
|
'<img data-action="preview-img" src="' . $picture . '" style="max-width:120px;max-height:200px;cursor:pointer" class="img img-thumbnail">', |
|
|
|