<div class="btn-group">
    <button type="button" class="btn btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        Opcije
    </button>
    <div class="dropdown-menu">
        {{-- @if($entity->status == 0)
            <button 
                id="openModalBtn" 
                type="button"
                class="dropdown-item btn btn-success"
                data-id="{{$entity->id}}"
                data-id-invoice="{{$entity->id_invoice}}"
                data-price="{{$entity->price}}"
                data-debt="{{$entity->debt}}"
                data-price-part="{{$entity->price_part}}"
                data-currency="{{$entity->currency}}"
                > 
                Potvrdi placanje
            </button>
        @endif --}}
        <a 
            href="{{ route('truck.invoices_edit_procurement', ['entity' => $entity->id]) }}" 
            class="dropdown-item btn btn-warning"
            title="@lang('Izmeni')"
        >
            <i class="fa fa-pencil"></i> Izmeni
        </a>
        <button 
            type="button"
            class="dropdown-item btn btn-danger"
            title="@lang('Obriši')"
            data-title="@lang('Obriši')"
            data-action="delete"
            data-id="{{ $entity->id }}"
            data-text="Da li ste sigurni da želite da obrišete fakturu #~b~#"
            data-label="{{ $entity->name }}"
            data-ajax-url="{{ route('truck.invoices_delete_procurement', ['entity' => $entity->id]) }}"
        >
            <i class="fa fa-trash"></i> Obriši
        </button>
    </div>
</div>

