fix invoice payment
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Datatables\Shop;
|
||||
namespace App\Datatables\Admin\Shop;
|
||||
|
||||
use App\Datatables\ParentDataTable as DataTable;
|
||||
use App\Models\Shop\InvoicePayment;
|
||||
use App\Repositories\Shop\InvoicePayments;
|
||||
use Yajra\DataTables\Html\Column;
|
||||
|
||||
class InvoicesDataTable extends DataTable
|
||||
class InvoicePaymentsDataTable extends DataTable
|
||||
{
|
||||
public $model_name = 'InvoicePayments';
|
||||
public $model_name = 'invoice_payments';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->url = route('Admin.Shop.InvoicePayments.index');
|
||||
}
|
||||
|
||||
public function query(InvoicePayment $model)
|
||||
{
|
||||
@@ -34,7 +39,7 @@ class InvoicesDataTable extends DataTable
|
||||
{
|
||||
return [
|
||||
Column::make('payment_type')->title('Type')->width(80),
|
||||
Column::make('status')->width(60),
|
||||
Column::make('date')->width(60),
|
||||
Column::make('amount')->title('Montant')->width(100),
|
||||
Column::make('reference')->title('Référence'),
|
||||
$this->makeColumnButtons(),
|
||||
Reference in New Issue
Block a user