Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. public function Provincias(){
  2. $Country = Country::All();
  3. $Provinces = Province::All();
  4. return view('promoter.AdminModules.Provinces')->with('Provinces',$Provinces)->with('Country',$Country);
  5. }
  6.  
  7. <thead>
  8. <tr>
  9. <th><i class="material-icons"></i>ID</th>
  10. <th><i class="material-icons"></i>Provincias</th>
  11. <th><i class="material-icons"></i>País</th>
  12. <th><i class="material-icons"></i>Opciones</th>
  13. </tr>
  14. </thead>
  15.  
  16. <tbody>
  17. @foreach($Provinces as $provinces)
  18. <tr>
  19. <td>{{$provinces->id}}</td>
  20. <td>{{$provinces->province_name}}</td>
  21. <td>{{$provinces->country_id}}</td>
  22. <td>
  23. </tr>
  24. @endforeach
  25. </tbody>
  26.  
  27. protected $table = 'country';
  28.  
  29. protected $fillable = [
  30. 'id',
  31. 'country_name',
  32. ];
  33.  
  34. protected $table = 'province';
  35.  
  36. protected $fillable = [
  37. 'id',
  38. 'province',
  39. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement