<tr>
  <td>{{ $branch->id }}</td>
  <td>{{ $branch->name }}</td>
  <td>{{ $branch->tel }}</td>
  <td>{{ $branch->lat_long }}</td>
  <td>
  @if(UserRole::has("edit_branch"))
    <a href="{{ Route("branches.edit",$branch->id) }}" class="btn btn-xs btn-info"><i class="fa fa-edit"></i> {{Trans("dashboard.crud.edit")}}</a>
  @endif
  @if(Branch::getNumber() == "more")
    @if(UserRole::has("delete_branch"))
      <a href="#" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#myModal{{$branch->id}}"><i class="fa fa-trash"></i> {{Trans("dashboard.crud.remove")}}</a>
    @endif
  @endif
    @include('layouts.includes.modals.danger', ['model' => $branch,'toRoute'=>'branches','attribute'=>'name'])
  </td>
</tr>
