<div class="panel">
    <div style="width: 100%; display:flex">
        <a href="{$createUrl}" class="btn btn-primary" style="margin-left: auto">Dodaj</a>
    </div>
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>Id</th>
                <th>ID kuriera</th>
                <th>Nazwa kuriera</th>
                <th>Paxy kraj</th>
                <th>Paxy nazwa kuriera</th>
                <th>Paxy typ paczki</th>
                <th>Pickup point</th>
                <th>Paxy typ punktów</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            {foreach from=$clCarriers item=carrier}
                <tr>
                    <td>{$carrier.id}</td>
                    <td>
                        {$carrier.id_carrier}
                    </td>
                    <td>
                        {$carrier.name}
                    </td>
                    <td>
                        {$carrier.paxy_country_name}
                    </td>
                    <td>
                        {$carrier.paxy_courier_name}
                    </td>
                    <td>
                        {$carrier.paxy_parcel_type}
                    </td>
                    <td>
                        {if $carrier.is_pickup_point == true}
                            Tak
                        {else}
                            Nie
                        {/if}
                    </td>
                    <td>
                       {$carrier.prettyPointName}
                    </td>
                    <td>
                        <a href="{$deleteUrl}&id={$carrier.id}" class="btn btn-danger btn-sm">Usuń</a>
                    </td>
                </tr>
            {/foreach}
        </tbody>
    </table>
</div>
