@@ -24,13 +24,13 @@ |
||
24 | 24 | $query = ShopService::getModel(); |
25 | 25 | $datatables = Datatables::of($query) |
26 | 26 | |
27 | - ->addColumn('action', function ($query) { |
|
27 | + ->addColumn('action', function($query) { |
|
28 | 28 | $deleteLink = Form::deleteajax(url()->route('shop.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
29 | 29 | $links = '<a href="'.url()->route('shop.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
30 | 30 | return $links; |
31 | 31 | }) |
32 | 32 | |
33 | - ->addColumn('image', function ($query) { |
|
33 | + ->addColumn('image', function($query) { |
|
34 | 34 | if ($query->logo_file_name) { |
35 | 35 | return '<img src="http://shop.brulo.nl/files/'.$query->id.'/logo/'.$query->logo_file_name.'" />'; |
36 | 36 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | if ($request->wantsJson()) { |
15 | 15 | $query = TaxRateService::getModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
16 | - $datatables = Datatables::of($query)->addColumn('action', function ($query) { |
|
16 | + $datatables = Datatables::of($query)->addColumn('action', function($query) { |
|
17 | 17 | $deleteLink = Form::deleteajax(url()->route('tax-rate.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-sm btn-danger'), $query->title); |
18 | 18 | $links = '<a href="'.url()->route('tax-rate.edit', $query->id).'" class="btn btn-sm btn-success"><i class="fi-pencil"></i>Edit</a> '.$deleteLink; |
19 | 19 | return $links; |