staff
This commit is contained in:
@@ -209,4 +209,20 @@ class ShipmentController extends Controller
|
||||
return redirect()->route('admin.shipments')
|
||||
->with('success', 'Shipment deleted successfully.');
|
||||
}
|
||||
|
||||
public function dummy($id)
|
||||
{
|
||||
// Load shipment
|
||||
$shipment = Shipment::with('orders')->findOrFail($id);
|
||||
|
||||
// Dummy data (you can modify anytime)
|
||||
$dummyData = [
|
||||
'title' => 'Dummy Shipment Preview',
|
||||
'generated_on' => now()->format('d M Y h:i A'),
|
||||
'note' => 'This is dummy shipment information for testing page layout.'
|
||||
];
|
||||
|
||||
return view('admin.view_shipment', compact('shipment', 'dummyData'));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user