/**
  * This function loads the add service providers page
  *
  *
  * @return  add service providers page with services table data
  */
 public function AddServiceProviderLoad()
 {
     $result = Services::select('*')->get();
     return view('serviceproviders.add-service-provider')->with('result', $result);
 }
 /**
  * This function loads the services page
  *
  * 
  *
  * @return  services page with services table data
  */
 public function Services()
 {
     $result = Services::select('*')->get();
     return view('services.services')->with('result', $result);
 }
Ejemplo n.º 3
0
                                
                    <div class="pricing-title">
                          {{$y_value}}
                        
                    </div>
                                
                    <div style="height: 86px;" class="pricing-features">

						<ul class="sf-list pr-list">
						<?php 
    //choose the corresponding services in the event type
    $ServicesQuery = Event_Services::select('*')->where('EventName', $y_value)->get();
    if ($ServicesQuery != null) {
        foreach ($ServicesQuery as $service) {
            $serv = $service->Service;
            $description = Services::select('*')->where('Service', $serv)->get();
            //$desc = $description->Description;
            //echo '<li>';
            foreach ($description as $d) {
                $desc = $d->Description;
            }
            echo "<li  style='padding:2px 20px' title='" . $desc . "' >" . $service->Service . "</li>";
            //echo '</li>';
        }
    }
    ?>
                        </ul>
                    </div>
                                        
                                    
                    <div class="pr-button">
@section('content')

@section('header-css')

@endsection

@section('header-js')

@endsection
 

<?php 
$service = $_GET['Service'];
use App\Models\Services;
//get data from tables using Service from URL
$services = Services::select('*')->where('Service', $service)->get();
foreach ($services as $y) {
    $ServiceName = $y->Service;
    $Description = $y->Description;
}
?>
@section('content')
<div class="content">
<div class="container">
    
    <div class="row">
        <div class="col-md-8 col-md-offset-1">
            <div class="panel panel-default"> 
                <div class="col-md-12">
                        <br/>
                        <center><h1>Edit Service : {{$service}} </h1></center>