order cancell started
This commit is contained in:
parent
74cb937809
commit
f10a8bbc9c
|
|
@ -20,4 +20,8 @@ class Orders extends OrderController
|
|||
|
||||
return view($this->_config['view']);
|
||||
}
|
||||
|
||||
public function cancelOrderItem($item_id){
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -294,6 +294,7 @@
|
|||
<th>{{ __('admin::app.sales.orders.discount-amount') }}</th>
|
||||
@endif
|
||||
<th>{{ __('admin::app.sales.orders.grand-total') }}</th>
|
||||
<th>{{ __('admin::app.sales.invoices.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
|
@ -351,6 +352,11 @@
|
|||
@endif
|
||||
|
||||
<td>{{ core()->formatPrice($item->total + $item->tax_amount - $item->discount_amount,$order->order_currency_code) }}</td>
|
||||
<td class="action">
|
||||
<a href="{{ route('admin.sales.orders.cancel_item', $item->id) }}">
|
||||
<i class="icon trash-icon"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -12,5 +12,8 @@ Route::group(['middleware' => ['web', 'admin', 'admin_locale'], 'prefix' => conf
|
|||
Route::get('/orders', [\Sarga\Admin\Http\Controllers\Orders::class, 'index'])->defaults('_config', [
|
||||
'view' => 'admin::sales.orders.index',
|
||||
])->name('admin.sales.orders.index');
|
||||
|
||||
Route::post('/orders/item/{id}/cancel', [\Sarga\Admin\Http\Controllers\Orders::class, 'cancelOrderItem'])
|
||||
->name('admin.sales.orders.cancel_item');
|
||||
});
|
||||
});
|
||||
Loading…
Reference in New Issue