
@extends('admin.layouts.master-soyuz')
@section('title','All Tax Classes | ')
@section('body')

@component('admin.component.breadcumb',['secondactive' => 'active'])
@slot('heading')
   {{ __('All Tax Classes') }}
@endslot
@slot('menu1')
   {{ __('All Tax Classes') }}
@endslot


@slot('button')
<div class="col-md-6">
    <div class="widgetbar">
     
      <a href=" {{url('admin/tax_class/create')}} " class="btn btn-primary-rgba"><i class="feather icon-plus mr-2"></i>  Add Tax Class</a>
     
      
    </div>
</div>
@endslot

@endcomponent

<div class="contentbar">   

  <div class="row">
  
      <div class="col-lg-12">
          <div class="card m-b-30">
              <div class="card-header">
                
                    <h5 class="card-title"> {{__("Tax Classes")}}</h5>
                 
                  
                
                 
                  
              </div>
              
              <div class="card-body">
               
                  <div class="table-responsive">
                    <table  id="datatable-buttons" class="table table-striped table-bordered">
                      <thead>
                        <tr >
                          <th>ID</th>
                          <th>Tax Title</th>
                          <th>Description</th>
                          <th>Action</th>
                        </tr>
                      </thead>
                      <tbody>
                        <?php $i=1;?>
                        @foreach($taxs as $tax)
                        
                        <tr>
                        <td class="text-dark">{{$i++}}</td>
                        <td>{{$tax->title}}</td>
                        <td>{{$tax->des}}</td>
                        <td>
                          <div class="dropdown">
                            <button class="btn btn-round btn-primary-rgba" type="button" id="CustomdropdownMenuButton3" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="feather icon-more-vertical-"></i></button>
                            <div class="dropdown-menu" aria-labelledby="CustomdropdownMenuButton3">
                              
                             
                                <a class="dropdown-item"   href=" {{url('admin/tax_class/'.$tax->id.'/edit')}} " ><i class="feather icon-edit mr-2"></i>{{ __("Edit")}}</a>
                             
                          
                              
                                <a class="dropdown-item"  data-toggle="modal" data-target="#tax_{{$tax->id}}"><i class="feather icon-delete mr-2"></i>{{ __("Delete")}}</a>
                                
                              </div>
                          </div>
                          
                        </td>
                       
                           
      
                        </tr>
                        @endforeach
                        
                        </tbody>
                      </table>
                </div>
            </div>
        </div>
    </div>
    <!-- End col -->
</div>

        
@foreach($taxs as $tax)
        <div id="tax_{{ $tax->id }}" class="delete-modal modal fade" role="dialog">
        <div class="modal-dialog modal-sm">
          <!-- Modal content-->
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal">&times;</button>
              <div class="delete-icon"></div>
            </div>
            <div class="modal-body text-center">
              <h4 class="modal-heading">Are You Sure ?</h4>
              <p>Do you really want to delete this tax? This process cannot be undone.</p>
            </div>
            <div class="modal-footer">
              <form method="post" action="{{url('admin/tax_class/'.$tax->id)}}" class="pull-right">
                              {{csrf_field()}}
                               {{method_field("DELETE")}}
                              
            
                <button type="reset" class="btn btn-gray translate-y-3" data-dismiss="modal">No</button>
                <button type="submit" class="btn btn-danger">Yes</button>
              </form>
            </div>
          </div>
        </div>
      </div>
@endforeach
@endsection     
                        
  
                    
    
                  
          
                  
    
    
          
                  
    
    
                  
                  
                
    
                
                                      


          

            
          
              




            

            
            
            
  
                 
  
               
  
          
    
             
            

          


