/**
  *This function is used to load the hall modal contents.This function response to
  *a ajax call.
  *
  * @param Request $request
  * @return \Illuminate\Http\JsonResponse
  */
 public function hallViewLoad(Request $request)
 {
     $inputs = $request::all();
     $hall_id = $inputs['hall_id'];
     $himage1 = HALL_IMAGE::where('hall_id', '=', $hall_id)->select('path')->first();
     $himages = HALL_IMAGE::where('hall_id', '=', $hall_id)->where('path', '!=', $himage1->path)->select('path')->get();
     $advance = DB::table('HALL_RATES')->where('hall_id', '=', $hall_id)->select('advance_payment')->first();
     $refundable = DB::table('HALL_RATES')->where('hall_id', '=', $hall_id)->select('refundable_amount')->first();
     $services = Hall_Services::where('rate', '=', 0)->select('name', 'rate')->get();
     $aservices = Hall_Services::where('rate', '>', 0)->select('name', 'rate')->get();
     return response()->json(['himage1' => $himage1->path, 'himages' => $himages, 'advance' => $advance->advance_payment, 'refundable' => $refundable->refundable_amount, 'services' => $services, 'aservices' => $aservices]);
 }
 /**
  * Delete a hall service with a given ID
  *
  * @param Request $request
  */
 public function deleteHallService(Request $request)
 {
     $service = Hall_Services::find($request->input('id'));
     $service->delete();
 }