WordPress: - Refactor hero section layout using CSS Grid for better responsiveness across desktop, tablet, and mobile devices. - Improve spacing and alignment for hero buttons and trust badges. - Fix admin bar offset issues in the hero section. - Clean up redundant HTML tags in front-page template. Laravel: - Change Filament admin panel path from 'admin' to 'panel'. - Clean up comments in web routes.
42 lines
1.6 KiB
PHP
42 lines
1.6 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\OrderController;
|
|
use App\Http\Controllers\PricingPageController;
|
|
use App\Http\Controllers\ShipmentPdfController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
Route::get('/pricing', PricingPageController::class)->name('pricing.index');
|
|
|
|
Route::get('/order', [OrderController::class, 'create'])->name('orders.create');
|
|
Route::post('/order', [OrderController::class, 'store'])->name('orders.store');
|
|
Route::get('/order/success/{shipment}', [OrderController::class, 'success'])->name('orders.success');
|
|
|
|
Route::middleware('auth')->group(function () {
|
|
Route::get('/shipments/{shipment}/pdf/awb', [ShipmentPdfController::class, 'awb'])->name('shipments.pdf.awb');
|
|
Route::get('/shipments/{shipment}/pdf/invoice', [ShipmentPdfController::class, 'invoice'])->name('shipments.pdf.invoice');
|
|
Route::get('/shipments/{shipment}/pdf/label', [ShipmentPdfController::class, 'label'])->name('shipments.pdf.label');
|
|
});
|
|
|
|
// صفحات نتیجه پرداخت
|
|
Route::get('/payment-result', function (Illuminate\Http\Request $request) {
|
|
$status = $request->input('status');
|
|
$transactionId = $request->input('transaction_id');
|
|
$refId = $request->input('ref_id');
|
|
$amount = $request->input('amount');
|
|
$message = $request->input('message');
|
|
|
|
$isSuccess = $status === 'success';
|
|
|
|
return view('payment-result', [
|
|
'status' => $status,
|
|
'isSuccess' => $isSuccess,
|
|
'transactionId' => $transactionId,
|
|
'refId' => $refId,
|
|
'amount' => $amount,
|
|
'message' => $message,
|
|
]);
|
|
})->name('payment.result'); |