<div class="subnav">
  <div class="navRow">

    <a class="btn2 {{ request()->routeIs('purchases.index') ? 'active' : '' }}"
       href="{{ route('purchases.index') }}">
      إدخال مشتريات
    </a>

    <a class="btn2 {{ request()->routeIs('purchases.invoices') ? 'active' : '' }}"
       href="{{ route('purchases.invoices') }}">
      فواتير المشتريات
    </a>

    <a class="btn2"
       href="{{ route('purchases.invoices.export', [
          'branch_id'=>request('branch_id',0),
          'supplier_id'=>request('supplier_id',0),
          'from'=>request('from'),
          'to'=>request('to'),
          'q'=>request('q','')
       ]) }}">
      تصدير CSV
    </a>

  </div>
</div>
