/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $contacts = Contact::orderBy('id', 'desc')->paginate(10);
     $option = Option::findOrFail(1);
     $featured_properties = Property::where('Heat_inc', '=', 'Yes')->get();
     return view('home', ['contacts' => $contacts, 'option' => $option, 'featured_properties' => $featured_properties]);
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(Request $request)
 {
     $contacts = Contact::orderBy('created_at', 'desc')->get();
     if ($request->ajax()) {
         return $contacts->toArray();
     }
     return view('admin.contacts.index', ['contacts' => $contacts]);
 }
 /**
  * Display a listing of contacts
  *
  * @return Response
  */
 public function index(Request $request, $obra_id = null)
 {
     if ($obra_id != null) {
         $project = Project::find($obra_id)->get();
         dd($project);
         $contacts = $project->contacts;
     } else {
         $contacts = Contact::orderBy($request->input('orderby', 'email'), $request->input('order', 'ASC'))->paginate($request->input('paginate', 50));
     }
     return view('contacts.index')->with('contacts', $contacts);
 }
 public function getContact()
 {
     $contacts = Contact::orderBy('updated_at', 'asc')->get();
     $this->assign('contacts', $contacts);
     return $this->display('admin.example.contact');
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $contacts = Contact::orderBy('id', 'desc')->paginate(10);
     return view('contacts.index', compact('contacts'));
 }
Example #6
0
 public function messages()
 {
     $contacts = Contact::orderBy('created_at')->paginate();
     return view('admin.messages', compact('contacts'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $contact = Contact::orderBy('updated_at', 'desc')->paginate(50);
     return view('admin.contact.index', compact('contact'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $contact = Contact::orderBy('status', 'asc')->paginate(4);
     return view('contacts.index', compact('contact'));
 }
 public function index()
 {
     $contacts = Contact::orderBy('id', 'asc')->get();
     return view('contacts', ['contacts' => $contacts, 'loggedUser' => $this->user, 'hash' => $this->hash, 'title' => 'Dashboard - Contacts']);
 }
 public function index()
 {
     $messages = Contact::orderBy('created_at', 'desc')->paginate(8);
     return view('message')->with('messages', $messages);
 }
Example #11
0
 public function adminIndex()
 {
     $contacts = Contact::orderBy('id', 'DESC')->paginate(Config::get('nafisConfig.perPage'));
     //dd($contacts->total());
     return view('admin.contactAdminIndex', compact('contacts'))->with(['title' => 'لیست تماس ها']);
 }