+ {{ __("excel.Choose data hint") }} +
+{{ __("invoice.Add new invoice by clicking add") }}
-{{ __("invoice.Add new payment by clicking add") }}
diff --git a/routes/api.php b/routes/api.php index 59dec37..b75c874 100644 --- a/routes/api.php +++ b/routes/api.php @@ -3,6 +3,7 @@ use App\Http\Controllers\Api\AddressController; use App\Http\Controllers\Api\AuthController; use App\Http\Controllers\Api\CustomerController; +use App\Http\Controllers\Api\ExcelController; use App\Http\Controllers\Api\InvoiceController; use App\Http\Controllers\Api\InvoiceitemController; use App\Http\Controllers\Api\MailController; @@ -38,6 +39,7 @@ Route::group(['as' => 'api.'], function () { Route::post('/sendInvoice', [MailController::class, 'sendInvoice'])->name('sendInvoice'); Route::get('/payment-filter/{start}/{end}', [PaymentController::class, 'indexFilter'])->name('payment.index'); Route::apiResource('/invoice.payment', PaymentController::class)->shallow(); + Route::post('/excel', [ExcelController::class, 'export'])->name('excel.export'); }); diff --git a/routes/web.php b/routes/web.php index 8f1e692..acc5f74 100644 --- a/routes/web.php +++ b/routes/web.php @@ -33,6 +33,7 @@ Route::middleware('auth')->group(function () { Route::get('/invoice/{id}/xml-download', [EController::class, 'downloadInvoice'])->name('invoice.eDownload'); Route::get('/invoice/{id}/mail', [InvoiceController::class, 'mail'])->name('invoice.mail'); Route::resource('/payment', PaymentController::class)->only(['index', 'create', 'edit']); + Route::get('/excel', function() { return view('excel'); })->name('excel'); }); require __DIR__.'/auth.php';