34 lines
916 B
PHP
34 lines
916 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
|
|
class AboutUsController extends Controller
|
|
{
|
|
public function index(){
|
|
|
|
return view('Admin.pages.manage_cms.manage_aboutus.manage_aboutsus');
|
|
|
|
}
|
|
|
|
public function edit($id)
|
|
{
|
|
|
|
|
|
|
|
|
|
try {
|
|
$edit_service = Aboutus::find($id)->toArray();
|
|
$about_us_cat = AboutUsCategory::all()->toArray();
|
|
$edit_service['thumbnail_image'] = ListingImageUrl('about_images', $edit_service['thumbnail_image']);
|
|
|
|
return view('admin.pages.manage_cms.manage_about_us_edit', compact('edit_service', 'about_us_cat'));
|
|
} catch (Exception $e) {
|
|
Log::error("edit voucher Page Load Failed " . $e->getMessage());
|
|
return jsonResponseWithErrorMessage(__('auth.something_went_wrong'), 500);
|
|
}
|
|
}
|
|
}
|