Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function Provincias(){
- $Country = Country::All();
- $Provinces = Province::All();
- return view('promoter.AdminModules.Provinces')->with('Provinces',$Provinces)->with('Country',$Country);
- }
- <thead>
- <tr>
- <th><i class="material-icons"></i>ID</th>
- <th><i class="material-icons"></i>Provincias</th>
- <th><i class="material-icons"></i>País</th>
- <th><i class="material-icons"></i>Opciones</th>
- </tr>
- </thead>
- <tbody>
- @foreach($Provinces as $provinces)
- <tr>
- <td>{{$provinces->id}}</td>
- <td>{{$provinces->province_name}}</td>
- <td>{{$provinces->country_id}}</td>
- <td>
- </tr>
- @endforeach
- </tbody>
- protected $table = 'country';
- protected $fillable = [
- 'id',
- 'country_name',
- ];
- protected $table = 'province';
- protected $fillable = [
- 'id',
- 'province',
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement