@extends('admin.layouts.master') @section('content')

{{ trans('app.taxes') }}

@can('create', \App\Models\Tax::class) {{ trans('app.add_tax') }} @endcan
@can('massDelete', \App\Models\Tax::class) @endcan @foreach ($taxes as $tax) @can('massDelete', \App\Models\Tax::class) @endcan @endforeach
{{ trans('app.name') }} {{ trans('app.tax_rate') }} {{ trans('app.region') }} {{ trans('app.public') }} {{ trans('app.status') }} {{ trans('app.option') }}
{{ $tax->name }} {{ get_formated_decimal($tax->taxrate) . ' ' . trans('app.%') }} {{ $tax->state ? $tax->state->name . ' :: ' : '' }} {{ $tax->country ? $tax->country->name : '' }} {{ $tax->public ? trans('app.yes') : '-' }} {{ $tax->active ? trans('app.active') : trans('app.inactive') }} @can('update', $tax)   @endcan @can('delete', $tax) {!! Form::open(['route' => ['admin.setting.tax.trash', $tax->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan

@can('massDelete', \App\Models\Tax::class) {!! Form::open(['route' => ['admin.setting.tax.emptyTrash'], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm btn btn-default btn-flat ajax-silent', 'title' => trans('help.empty_trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'right']) !!} {!! Form::close() !!} @else @endcan {{ trans('app.trash') }}

@foreach ($trashes as $trash) @endforeach
{{ trans('app.name') }} {{ trans('app.tax_rate') }} {{ trans('app.country') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ $trash->name }} {{ $trash->taxrate }} {{ trans('app.%') }} {{ $trash->country->name }} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.setting.tax.destroy', $trash->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.delete_permanently'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
@endsection