You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
514 B
19 lines
514 B
2 years ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use App\Models\Service;
|
||
|
use App\Models\Accomodation;
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class ServiceController extends Controller
|
||
|
{
|
||
|
public function single_service($slug){
|
||
|
$service = Service::where(['slug' => $slug,'status' => 1])->orderby('order_by','asc')->first();
|
||
|
$services = Service::where('status',1)->get();
|
||
|
// $accomodations = Accomodation::where('status',1)->get();
|
||
|
|
||
|
return view('service_view',compact('service','services'));
|
||
|
}
|
||
|
}
|