Example #1
0
 public static function retrieveNote($id)
 {
     $ctr = 0;
     $notes = Note::with(['user'])->whereLeadId($id)->latest()->paginate(10);
     return view('user.response-ajax.notes', compact('notes', 'ctr'));
 }
Example #2
0
 public static function show_device_note($device_slug, $request)
 {
     $ctr = 0;
     $device = Device::whereSlug($device_slug)->first();
     $device_id = $device->id;
     $notes = Note::with(['user'])->where('device_id', $device_id);
     $notes = $notes->where('note', 'LIKE', '%' . $request->get('filter') . '%');
     $notes = $notes->latest('notes.created_at')->paginate(25);
     $notes->setPath('notes');
     return view('devices.device_tab.note', compact('device', 'notes', 'ctr'));
 }
Example #3
0
 public function aficherNote($id, $back)
 {
     //
     $actif = 'notes';
     $note = Note::with('contact', 'user')->findOrFail($id);
     //$contact = Contact::findOrFail($note->contact_id);
     //$profil= $contact->societe_id;
     return view('notes.aff_note', compact('note', 'actif', 'back', 'profil'));
 }
Example #4
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $notes = Note::with('department')->orderBy('semester')->latest()->paginate();
     return view('notes.index')->withNotes($notes);
 }
Example #5
0
 public function notes()
 {
     $notes = Note::with('technicien')->get();
     $count = Note::countMyMsg($notes);
     return view('/techniciens/notes', ['notes' => $notes, 'countnote' => $count]);
 }