public function getData() { $data = Inquiry::all(); return response()->json(['count' => count($data), 'data' => $data]); }
/** * Главная страница админки статусов запросов * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function main() { return view('admin.inquiry.main', ['inquiries' => Inquiry::all()]); }
public function inquiryPage(Organization $organization) { $inquiryHistory = OrganizationInquiry::where('organization_id', $organization->id)->with('inquiry')->get(); return view('admin.organization.inquiries', ['inquiries' => Inquiry::all(), 'organization' => $organization, 'organizationInquiries' => $inquiryHistory, 'menu' => 'inquiries']); }
/** * Show the inquires from the homepage. * * @return \Illuminate\Http\Response */ public function index() { return view('cms.inquiries', ['inquiries' => Inquiry::all()]); }