SHARE
TWEET

Untitled

a guest Jun 17th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     ];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top