@extends('adminlte::page')

@section('content')
<?php Fun::lang()?>
<div class="title-add">
    <div class="page-bar"> 
        <ul class="page-breadcrumb"> 
            <li> <a class="ng-binding" href="#"><i class="fa fa-dashboard"></i> Dashboard</a> </li>
            <li><a href="#">Manage Agency Team</a></li>
        </ul> 
    </div>
</div>
<div class="page">
    <div class="top-content">
        <div class="row">
            <div class="col-sm-12 col-xs-12">
                <div class="title-add">
                    <div class="pull-left">
                      <h3>Agency Team</h3>
                    </div>
                </div>
                <div class="pull-right">
                    @can('Agency-Team-Create')
                        <a class="button_sm button_primary" href="{{ route('agency-team.create') }}"><span class="fa fa-plus"></span>  Create New</a>
                    @endcan
                </div>
            </div>
        </div>
    </div>
    <div class="box-body table-responsive">
        <table id="datatable_products" class="table  table-bordered table-hover nowrap">
            <thead>
                <tr>
                    <th>No</th>
                    <th>Agency Team Name</th>
                    <th>Action</th>
                </tr>
            </thead>
            <tbody>
            @foreach($agency_team as $key => $value)
                <tr>
                    <td>{{$value->id}}</td>
                    <td>{{$value->agency_team_name}}</td>
                    <td>
                        @can('Agency-Team-Edit')
                            <a href="{{route("agency-team.edit", $value->id)}}"><span class="button_success fa fa-edit"></span></a>
                        @endcan
                    </td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>
</div>
@endsection
@section('js')
    <script type="text/javascript">
        $(document).ready(function () {
            $('#datatable_products').DataTable();
        });
    </script>
@endsection


