change
This commit is contained in:
@@ -74,6 +74,7 @@ class ManageRestrauntController extends Controller
|
||||
$restaurant->latitude = $request->input('latitude');
|
||||
$restaurant->longtitude = $request->input('longitude');
|
||||
$restaurant->exclusion = $request->input('exclusion');
|
||||
$restaurant->phone_number = $request->input('phone_number');
|
||||
$restaurant->try_on_1 = $request->input('try_on_1');
|
||||
$restaurant->try_on_2 = $request->input('try_on_2');
|
||||
$restaurant->try_on_3 = $request->input('try_on_3');
|
||||
|
||||
@@ -22,7 +22,7 @@ class ManageRestaurant extends Model
|
||||
protected $fillable = [
|
||||
'short_id', 'name', 'description', 'restaurant_id', 'address', 'image', 'bio',
|
||||
'try_on_1', 'try_on_2', 'try_on_3', 'try_on_4', 'exclusion', 'latitude', 'longitude',
|
||||
'is_active', 'created_by', 'modified_by'
|
||||
'is_active', 'created_by', 'modified_by', 'phone_number'
|
||||
];
|
||||
|
||||
protected static function boot()
|
||||
@@ -54,6 +54,6 @@ class ManageRestaurant extends Model
|
||||
return $this->belongsTo(ManageState::class, 'state_xid', 'id');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\APIs\RestaurantService;
|
||||
use App\Models\IamPrincipal;
|
||||
|
||||
use App\Models\IamPrincipal;
|
||||
use App\Models\admin\ManageVoucherModel;
|
||||
use App\Models\admin\Mana;
|
||||
use App\Models\ManageRestaurant;
|
||||
@@ -42,7 +43,7 @@ class RestaurantApi_Service
|
||||
// $restaurantDetails = [];
|
||||
|
||||
foreach ($restaurantRoles as $restaurantRole) {
|
||||
$restaurant =ManageRestaurant::select('id', 'name', 'description', 'restaurant_id', 'address', 'image', 'bio', 'try_on_1','phone_number', 'try_on_2', 'try_on_3', 'try_on_4', 'exclusion', 'latitude','longtitude','is_active','created_by','modified_by','deleted_at','created_at','updated_at')
|
||||
$restaurant = ManageRestaurant::select('id', 'name', 'description', 'restaurant_id', 'address', 'image', 'bio', 'try_on_1', 'phone_number', 'try_on_2', 'try_on_3', 'try_on_4', 'exclusion', 'latitude', 'longtitude', 'is_active', 'created_by', 'modified_by', 'deleted_at', 'created_at', 'updated_at')
|
||||
->where('id', $restaurantRole->restaurant_xid)
|
||||
->where('is_active', 1)
|
||||
->first();
|
||||
@@ -132,7 +133,6 @@ class RestaurantApi_Service
|
||||
$tnormalImage = saveSingleImageWithoutCrop($image, 'profile_image', null);
|
||||
$data->update(['profile_photo' => $tnormalImage]);
|
||||
DB::commit();
|
||||
|
||||
}
|
||||
if ($request->has('first_name')) {
|
||||
$data->first_name = $request->first_name;
|
||||
|
||||
@@ -17,6 +17,7 @@ return new class extends Migration
|
||||
$table->string('short_id')->unique();
|
||||
$table->string('name',255)->nullable();
|
||||
$table->longText('description')->nullable();
|
||||
$table->string('phone_number', 15)->nullable();
|
||||
$table->string('restaurant_id')->nullable();
|
||||
$table->string('address',255)->nullable();
|
||||
$table->string('image')->nullable();
|
||||
|
||||
@@ -18,7 +18,7 @@ $(document).on("click", "#update_restaurant_btn", function (e) {
|
||||
image: {
|
||||
required: true,
|
||||
},
|
||||
exclusion: {
|
||||
phone_number: {
|
||||
required: true,
|
||||
},
|
||||
latitude: {
|
||||
@@ -67,8 +67,8 @@ $(document).on("click", "#update_restaurant_btn", function (e) {
|
||||
image: {
|
||||
required: "Please insert image",
|
||||
},
|
||||
exclusion: {
|
||||
required: "Please enter exclusion",
|
||||
phone_number: {
|
||||
required: "Please enter phone number",
|
||||
},
|
||||
latitude: {
|
||||
required: "Please enter latitude",
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="location" class="label">Exclusion</label>
|
||||
<input type="text" class="form-control" name="exclusion" required>
|
||||
<input type="text" class="form-control" name="exclusion" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
@@ -94,6 +94,12 @@
|
||||
<input type="text" class="form-control" name="longitude" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="phone_number" class="label">Phone number</label>
|
||||
<input type="text" class="form-control" name="phone_number" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="company-name" class="label">Bio</label>
|
||||
|
||||
Reference in New Issue
Block a user