change
This commit is contained in:
@@ -9,6 +9,7 @@ use Illuminate\Support\Facades\DB;
|
||||
use App\Models\IamPrincipal;
|
||||
use App\Models\ManageRestaurant;
|
||||
use App\Mail\RestUserApproval;
|
||||
use App\Models\IamPrincipalRestaurantRole;
|
||||
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
|
||||
@@ -18,7 +19,10 @@ use Exception;
|
||||
|
||||
class RestaurantAppController extends Controller
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public function index_restraunt_users(Request $request)
|
||||
{
|
||||
@@ -37,7 +41,8 @@ class RestaurantAppController extends Controller
|
||||
}
|
||||
foreach ($restaurant_users as $user) {
|
||||
$restaurantIds = $user->getresturant->pluck('restaurant_xid')->toArray();
|
||||
// $user->vouchers = ManageVoucherModel::whereIn('id', $restaurantIds)->get();
|
||||
|
||||
// $user->vouchers = ManageRestaurant::whereIn('id', $restaurantIds)->get();
|
||||
}
|
||||
return view('admin.pages.manage_users.restaurants_app.restaurants_users', compact('restaurant_users'));
|
||||
} catch (Exception $e) {
|
||||
@@ -129,6 +134,79 @@ class RestaurantAppController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
// public function view_rest($id)
|
||||
// {
|
||||
|
||||
// try {
|
||||
// $restaurantView = IamPrincipal::findOrFail($id);
|
||||
// // dd($restaurantView);
|
||||
// return view('Admin.pages.manage_users.restaurants_app.view_restaurant_users', compact('restaurantView'));
|
||||
// } catch (Exception $e) {
|
||||
// Log::error("Manage Voucher Page Not Load " . $e->getMessage());
|
||||
// return jsonResponseWithErrorMessage(__('auth.something_went_wrong'), 500);
|
||||
// }
|
||||
// }
|
||||
|
||||
// public function view_rest($id)
|
||||
// {
|
||||
// try {
|
||||
// $restaurantView = IamPrincipal::findOrFail($id);
|
||||
// return view('Admin.pages.manage_users.restaurants_app.view_restaurant_users', compact('restaurantView'));
|
||||
// } catch (Exception $e) {
|
||||
// Log::error("Manage Voucher Page Not Load " . $e->getMessage());
|
||||
// return jsonResponseWithErrorMessage(__('auth.something_went_wrong'), 500);
|
||||
// }
|
||||
// }
|
||||
|
||||
public function view_rest($id)
|
||||
{
|
||||
try {
|
||||
$restaurantView = IamPrincipal::with('restaurant')->findOrFail($id);
|
||||
return view('Admin.pages.manage_users.restaurants_app.view_restaurant_users', compact('restaurantView'));
|
||||
} catch (Exception $e) {
|
||||
Log::error("Manage Voucher Page Not Load " . $e->getMessage());
|
||||
return jsonResponseWithErrorMessage(__('auth.something_went_wrong'), 500);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public function edit_Restaurant($id)
|
||||
{
|
||||
|
||||
try {
|
||||
$editRest = IamPrincipal::findOrFail($id);
|
||||
return view('Admin.pages.manage_users.restaurants_app.edit_restaurant_users', compact('editRest'));
|
||||
} catch (Exception $e) {
|
||||
Log::error("Manage Voucher Page Not Load " . $e->getMessage());
|
||||
return jsonResponseWithErrorMessage(__('auth.something_went_wrong'), 500);
|
||||
}
|
||||
}
|
||||
|
||||
public function updateRest(Request $request)
|
||||
{
|
||||
|
||||
|
||||
try {
|
||||
DB::beginTransaction();
|
||||
$rest_data = IamPrincipal::where('id', $request->rest_id)->first();
|
||||
$rest_data->first_name = $request->input('name');
|
||||
$rest_data->last_name = $request->input('last_name');
|
||||
|
||||
$rest_data->phone_number = $request->input('phone');
|
||||
$rest_data->email_address = $request->input('email_id');
|
||||
$rest_data->save();
|
||||
DB::commit();
|
||||
|
||||
return jsonResponseWithSuccessMessage(__('success.update_data'));
|
||||
} catch (Exception $e) {
|
||||
DB::rollBack();
|
||||
Log::error("updateCustomerNewsArticle Services Page Load Failed " . $e->getMessage());
|
||||
return jsonResponseWithErrorMessage(__('auth.something_went_wrong'), 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ class IamPrincipal extends Authenticatable implements JWTSubject
|
||||
|
||||
return $customerCount;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// protected $fillable =
|
||||
@@ -173,4 +173,18 @@ class IamPrincipal extends Authenticatable implements JWTSubject
|
||||
{
|
||||
return $this->belongsTo(ManageState::class, 'state_xid', 'id');
|
||||
}
|
||||
public function roles()
|
||||
{
|
||||
return $this->hasMany(IamPrincipalRestaurantRole::class, 'id', 'principal_xid');
|
||||
}
|
||||
// public function restaurants()
|
||||
// {
|
||||
// return $this->hasMany(ManageRestaurant::class, 'restaurant_id', 'id');
|
||||
// }
|
||||
|
||||
public function restaurant()
|
||||
{
|
||||
return $this->hasMany(ManageRestaurant::class, 'id', 'restaurant_xid');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,4 +17,7 @@ class IamPrincipalRestaurantRole extends Model
|
||||
'created_by',
|
||||
'modified_by',
|
||||
];
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -10,6 +10,8 @@ use Illuminate\Support\Str;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
use App\Models\ManageState;
|
||||
use App\Models\IamPrincipalRestaurantRole;
|
||||
|
||||
|
||||
|
||||
class ManageRestaurant extends Model
|
||||
@@ -51,4 +53,7 @@ class ManageRestaurant extends Model
|
||||
{
|
||||
return $this->belongsTo(ManageState::class, 'state_xid', 'id');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -256,3 +256,106 @@ $(document).on("click", ".restaurant_unarchive", function (e) {
|
||||
});
|
||||
|
||||
|
||||
$('#restaurant_user_form').validate({
|
||||
ignore: [],
|
||||
debug: false,
|
||||
rules: {
|
||||
restaurant_name: {
|
||||
required: true,
|
||||
fullNameCharactersOnly: true
|
||||
},
|
||||
restaurant_des:{
|
||||
required: true,
|
||||
},
|
||||
restaurant_Id:{
|
||||
required: true,
|
||||
},
|
||||
restaurant_loc:{
|
||||
required: true,
|
||||
},
|
||||
restaurant_email: {
|
||||
required: true,
|
||||
email: true,
|
||||
},
|
||||
restaurant_image: {
|
||||
required: true,
|
||||
},
|
||||
restaurant_phone: {
|
||||
required: true,
|
||||
numericCharactersOnly: true
|
||||
},
|
||||
restaurant_bio:{
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
restaurant_name: {
|
||||
required: "Enter Passport Name",
|
||||
alphaCharactersOnly: "Please enter only alphabetical characters"
|
||||
},
|
||||
restaurant_des:{
|
||||
required: "Please enter description",
|
||||
},
|
||||
restaurant_Id:{
|
||||
required: "Please enter restaurant Id",
|
||||
},
|
||||
restaurant_loc:{
|
||||
required: "Please enter location",
|
||||
},
|
||||
restaurant_email: {
|
||||
required: "Enter email address",
|
||||
email: "Please enter a valid email address"
|
||||
},
|
||||
restaurant_image: {
|
||||
required: "Please select the image",
|
||||
},
|
||||
restaurant_phone: {
|
||||
required: "Enter Phone Number",
|
||||
numericCharactersOnly: "Please enter only numeric characters"
|
||||
},
|
||||
restaurant_bio:{
|
||||
required: "Please enter bio",
|
||||
},
|
||||
},
|
||||
errorClass: 'error-message',
|
||||
submitHandler: function(form) {
|
||||
let base_url = url_path;
|
||||
var formData = new FormData(form);
|
||||
|
||||
$('#restaturant_user_btn').text('Please wait...');
|
||||
$('#restaturant_user_btn').attr('disabled', true);
|
||||
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: base_url + '/update_restaurant',
|
||||
type: 'POST',
|
||||
data: formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
success: function(result) {
|
||||
|
||||
if (result.status_code == 200) {
|
||||
toastr.success('Restaurant Updated Sucessfully');
|
||||
setTimeout(function() {
|
||||
window.location.href = base_url + "/restaurant_users";
|
||||
}, 2000);
|
||||
} else {
|
||||
toastr.error('Something Went Wrong');
|
||||
setTimeout(function() {
|
||||
window.location.href = base_url + "/restaurant_users";
|
||||
}, 2000);
|
||||
}
|
||||
$('#restaturant_user_btn').attr('disabled', false);
|
||||
$('#restaturant_user_btn').text('Submit');
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
$('#restaturant_user_btn').attr('disabled', false);
|
||||
$('#restaturant_user_btn').text('Submit');
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,147 @@
|
||||
@extends('Admin.layouts.master')
|
||||
|
||||
@section('content')
|
||||
@php
|
||||
$currentPage = 'manage-restaurant_app';
|
||||
@endphp
|
||||
<style>
|
||||
.error-message {
|
||||
color: #FF0000;
|
||||
}
|
||||
|
||||
form .error-message {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<div class="layout-px-spacing">
|
||||
<div class="middle-content container-xxl p-0">
|
||||
<div class="row layout-top-spacing ">
|
||||
<div class="top-tabel">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<!-- <h6 class="card-title">Edit Manage Customers</h6> -->
|
||||
<a class="d-flex align-items-center justify-content-center pl-2" href="{{ route('restraunt_users') }}">
|
||||
<img class="back-btn" src="{{ asset('public/assets/img/left-arrow.svg') }}">
|
||||
<h6 class="card-title p-0">Edit Details</h6>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
|
||||
<div class="widget-content widget-content-area br-8 position-btn h-10">
|
||||
<div class="view-details Article">
|
||||
<form id="restaurant_user_form">
|
||||
<input type="hidden" name="rest_id" class="form-control" value="{{$editRest->id}}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="company-name" class="label">Restaurant Name</label>
|
||||
<input type="text" name="restaurant_name" id="restaurant_name" class="form-control" value="{{$editRest->first_name}} ">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="company-name" class="label">Description</label>
|
||||
<input type="text" class="form-control" name="restaurant_des" id="restaurant_des">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="company-name" class="label">Restaurant ID</label>
|
||||
<input type="text" class="form-control" name="restaurant_Id" id="restaurant_Id" value="{{$editRest->id }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="company-name" class="label">Location</label>
|
||||
<input type="text" class="form-control" name="restaurant_loc" id="restaurant_loc" value="{{$editRest->state ? $editRest->state->name : 'No state assigned' }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="company-name" class="label">Email ID</label>
|
||||
<input type="text" class="form-control" name="restaurant_email" id="restaurant_email" value="{{$editRest->email_address }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="company-name" class="label">Phone Number</label>
|
||||
<input type="text" class="form-control" name="restaurant_phone" id="restaurant_phone" value="{{$editRest->phone_number }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="company-name" class="label">Image</label>
|
||||
<input type="file" class="form-control" name="restaurant_image" id="restaurant_image" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="company-name" class="label">Bio</label>
|
||||
<input type="text" class="form-control" name="restaurant_bio" id="restaurant_bio" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label for="company-name" class="label">While at Restaurant be sure to try
|
||||
:</label>
|
||||
<input type="text" class="form-control mb-3">
|
||||
<input type="text" class="form-control mb-3">
|
||||
<input type="text" class="form-control mb-3">
|
||||
<input type="text" class="form-control mb-3">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<button type="submit" id="restaturant_user_btn" class="download-btn-custom mt-3 w-25" >
|
||||
<span>Save</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@endsection
|
||||
@section('section_script')
|
||||
|
||||
<script src="../src/plugins/src/table/datatable/datatables.js"></script>
|
||||
<script>
|
||||
$('#zero-config').DataTable({
|
||||
"dom": "<'dt--top-section'<'row'<'col-12 col-sm-6 d-flex justify-content-sm-start justify-content-center'l><'col-12 col-sm-6 d-flex justify-content-sm-end justify-content-center mt-sm-0 mt-3'f>>>" +
|
||||
"<'table-responsive'tr>" +
|
||||
"<'dt--bottom-section d-sm-flex justify-content-sm-between text-center'<'dt--pages-count mb-sm-0 mb-3'i><'dt--pagination'p>>",
|
||||
"oLanguage": {
|
||||
"oPaginate": {
|
||||
"sPrevious": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>',
|
||||
"sNext": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>'
|
||||
},
|
||||
"sInfo": "Showing page _PAGE_ of _PAGES_",
|
||||
"sSearch": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',
|
||||
"sSearchPlaceholder": "Search...",
|
||||
"sLengthMenu": "Results : _MENU_",
|
||||
},
|
||||
"stripeClasses": [],
|
||||
"lengthMenu": [7, 10, 20, 50],
|
||||
"pageLength": 10
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('<button><a class="extra-btn width-max-content" href="archive-manage-customers.php">View Archive List</a></button><button><ul class="navbar-item flex-row ms-lg-auto ms-0"><li class="nav-item dropdown action-dropdown order-lg-0 order-1"><a href="javascript:void(0);"class="nav-link dropdown-toggle user extra-btn" id="actionDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><div class="avatar-container"><div class="avatar avatar-sm avatar-indicators avatar-online"><h3>Export</h3></div></div></a><div class="dropdown-menu position-absolute" aria-labelledby="actionDropdown"><div class="dropdown-item"><a href="#"><span>Download Overview</span></a></div><div class="dropdown-item"><a href="#"><span>Download Patient Data</span></a></div><div class="dropdown-item"><a href="#"> <span>Download Selected</span></a></div></div></li></ul></button>').insertBefore("#zero-config_filter label");
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -33,6 +33,54 @@ $currentPage = 'manage-restaurant_app';
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
<style>
|
||||
/* CSS for action icons */
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.actions a {
|
||||
margin: 0 5px;
|
||||
/* Space between icons */
|
||||
}
|
||||
|
||||
.actions img {
|
||||
width: 20px;
|
||||
/* Adjust the size as needed */
|
||||
height: 20px;
|
||||
/* Adjust the size as needed */
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
.actions img:hover {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
/* Ensuring icons are properly aligned in their table cells */
|
||||
td.actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Additional global styles for consistency */
|
||||
table td,
|
||||
table th {
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Ensuring the table does not overflow */
|
||||
table {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
</style>
|
||||
<div class="layout-px-spacing">
|
||||
<div class="middle-content container-xxl p-0">
|
||||
@@ -67,6 +115,7 @@ $currentPage = 'manage-restaurant_app';
|
||||
<th class="no-content">Approve/Disapprove</th>
|
||||
|
||||
<th class="no-content">Action</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -81,7 +130,11 @@ $currentPage = 'manage-restaurant_app';
|
||||
</div>
|
||||
</td> --}}
|
||||
<td class="text-start">{{ $loop->iteration }}</td>
|
||||
<td class="text-start">{{ $restaurant_user->first_name }}</td>
|
||||
<td class="text-start">{{ $restaurant_user->first_name}}</td>
|
||||
|
||||
|
||||
|
||||
|
||||
<td class="text-start">{{ $restaurant_user->id }}</td>
|
||||
<td class="text-start">{{ $restaurant_user->email_address }}</td>
|
||||
|
||||
@@ -119,10 +172,10 @@ $currentPage = 'manage-restaurant_app';
|
||||
</div>
|
||||
</td>
|
||||
|
||||
{{-- <td class="text-start">
|
||||
<!-- <td class="text-start">
|
||||
<a class="view-btn" href="#">View</a>
|
||||
</td> --}}
|
||||
{{-- <td>
|
||||
</td> -->
|
||||
<!-- <td>
|
||||
|
||||
<div class="dropout">
|
||||
<button class="more">
|
||||
@@ -132,10 +185,10 @@ $currentPage = 'manage-restaurant_app';
|
||||
</button>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">
|
||||
<img src="{{ asset('public/assets/img/view.svg') }}" />
|
||||
<span>View</span>
|
||||
</a>
|
||||
|
||||
<a href="{{ url('/view_restaurant_users' . $restaurant_user->id) }}">
|
||||
<img src="{{ asset('public/assets/img/view.svg') }}" alt="View" title="View" />
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="cust_archive_btn"
|
||||
@@ -152,7 +205,19 @@ $currentPage = 'manage-restaurant_app';
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td> --}}
|
||||
</td> -->
|
||||
|
||||
<td class="actions">
|
||||
<a href="{{ url('/view_restaurant_users/' . $restaurant_user->id) }}">
|
||||
<img src="{{ asset('public/assets/img/view.svg') }}" alt="View" title="View" />
|
||||
</a>
|
||||
<a href="{{ url('/edit_restaurant_users/' . $restaurant_user->id) }}">
|
||||
<img src="{{ asset('public/assets/img/edit.svg') }}" alt="Edit" title="Edit" />
|
||||
</a>
|
||||
<a class="cust_archive_btn" data-id="{{ $restaurant_user->id }}" data-toggle="modal" data-target="#archive-modal">
|
||||
<img src="{{ asset('public/assets/img/archive.svg') }}" alt="Archive" title="Archive" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
@@ -284,4 +349,9 @@ $currentPage = 'manage-restaurant_app';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('<button><a class="extra-btn width-max-content" href="">View Archive List</a></button>').insertBefore("#zero-config_filter label");
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,133 @@
|
||||
@extends('Admin.layouts.master')
|
||||
|
||||
@section('content')
|
||||
@php
|
||||
$currentPage = 'manage-restaurant_app';
|
||||
@endphp
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="layout-px-spacing">
|
||||
<div class="middle-content container-xxl p-0">
|
||||
<div class="row layout-top-spacing ">
|
||||
<div class="top-tabel">
|
||||
<div class="row">
|
||||
<div class="col-md-4 left">
|
||||
<a class="d-flex align-items-center justify-content-center pl-2" href="{{ route('restraunt_users') }}">
|
||||
<img class="back-btn" src="{{ asset('public/assets/img/left-arrow.svg') }}">
|
||||
<h6 class="card-title p-0">View Details</h6>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
|
||||
<div class="widget-content widget-content-area br-8 position-btn p-0">
|
||||
<div class="view-details">
|
||||
<div class="simple-tab">
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="tab-pane fade show active" id="home-tab-pane" role="tabpanel" aria-labelledby="home-tab" tabindex="0">
|
||||
<div class="row">
|
||||
<div class="col-md-6 mb-10 tabs23">
|
||||
<table>
|
||||
<tr class="title">
|
||||
<td>Restaurants Name :</td>
|
||||
<td>Restaurant ID :</td>
|
||||
<td>Email ID :</td>
|
||||
<td>Description :</td>
|
||||
<td>Start Date :</td>
|
||||
<td>Image :</td>
|
||||
</tr>
|
||||
<tr class="w-100">
|
||||
<td>{{ $restaurantView->first_name ?? 'NA' }}</td>
|
||||
<td>{{ $restaurantView->id }}</td>
|
||||
<td>{{ $restaurantView->email_address }}</td>
|
||||
<td>{{ $restaurantView->description }}</td>
|
||||
<td>{{ \Carbon\Carbon::parse($restaurantView->date_of_birth)->format('d/m/Y') }}</td>
|
||||
<td><img src=""></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6 mb-10">
|
||||
<table>
|
||||
<tr class="title">
|
||||
<td>Location :</td>
|
||||
<td>Onboarded date :</td>
|
||||
<td>Phone Number :</td>
|
||||
<td>Bio :</td>
|
||||
<td>End Date :</td>
|
||||
<td>While at Restaurant be sure to try :</td>
|
||||
</tr>
|
||||
<tr class="w-100">
|
||||
<td>{{ $restaurantView->state->name}}</td>
|
||||
<td>{{ \Carbon\Carbon::parse($restaurantView->created_at)->format('d-m-y') }}</td>
|
||||
<td>{{ $restaurantView->phone_number}}</td>
|
||||
<td>lorem ipsum</td>
|
||||
<td>19/12/2023</td>
|
||||
<td class="d-flex flex-column justify-content-start">
|
||||
<p class="w-100">Lorem Ipsum Lorem Ipsum</p>
|
||||
<p class="w-100">Lorem Ipsum Lorem Ipsum</p>
|
||||
<p class="w-100">Lorem Ipsum Lorem Ipsum</p>
|
||||
<p class="w-100">Lorem Ipsum Lorem Ipsum</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<a class="download-btn-custom mt-3" href="">
|
||||
<span>Download user report</span>
|
||||
<img src="{{ asset('public/assets/img/download.svg') }}" />
|
||||
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@section('section_script')
|
||||
<script>
|
||||
const imageInputEdit = document.getElementById('imageInputNormal');
|
||||
const imagePreviewEdit = document.getElementById('imageInputPreviewNormal');
|
||||
|
||||
imageInputEdit.addEventListener('change', function() {
|
||||
const file = this.files[0];
|
||||
if (file) {
|
||||
const reader = new FileReader();
|
||||
reader.onload = function(event) {
|
||||
const img = document.createElement('img');
|
||||
img.src = event.target.result;
|
||||
img.style.maxWidth = '200px';
|
||||
img.style.maxHeight = '200px';
|
||||
imagePreviewEdit.innerHTML = '';
|
||||
imagePreviewEdit.appendChild(img);
|
||||
};
|
||||
reader.readAsDataURL(file);
|
||||
} else {
|
||||
imagePreviewEdit.innerHTML = '';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -61,6 +61,10 @@ Route::post('/manage_customer_unarchive/{id}', [ManageCustomerController::class,
|
||||
Route::get('/restaurant_users', [RestaurantAppController::class, 'index_restraunt_users'])->name('restraunt_users');
|
||||
Route::get('/change_rest_status', [RestaurantAppController::class, 'change_rest_user_status']);
|
||||
|
||||
Route::get('/view_restaurant_users/{id}', [RestaurantAppController::class, 'view_rest'])->name('restaurantViewUsers');
|
||||
Route::get('/edit_restaurant_users/{id}', [RestaurantAppController::class, 'edit_Restaurant'])->name('EditRestUsers');
|
||||
Route::post('/update_restaurant', [RestaurantAppController::class, 'updateRest']);
|
||||
|
||||
|
||||
//*******************************************************manage subadmin********************************************************
|
||||
Route::get('/manage-sub-admin', [ ManageSubAdminController ::class, 'index'])->name('manage.subAdmin');
|
||||
|
||||
Reference in New Issue
Block a user