@extends('admin::layouts.content')

@section('page_title')
    {{ __('admin::app.promotion.catalog-rule') }}
@stop

@section('content')

    <div class="content">
        <div class="page-header">
            <div class="page-title">
                <h1>{{ __('admin::app.promotion.catalog-rule') }}</h1>
            </div>

            <div class="page-action">
                <a href="{{ route('admin.catalog-rule.create') }}" class="btn btn-lg btn-primary">
                    {{ __('admin::app.promotion.add-catalog-rule') }}
                </a>

                <a href="{{ route('admin.catalog-rule.apply') }}" class="btn btn-lg btn-primary">
                    {{ __('admin::app.promotion.apply') }}
                </a>

                <a href="{{ route('admin.catalog-rule.declut') }}" class="btn btn-lg btn-primary">
                    {{ __('admin::app.promotion.declut') }}
                </a>
            </div>
        </div>

        <div class="page-content">
            @inject('catalogRuleGrid','Webkul\Admin\DataGrids\CatalogRuleDataGrid')
            {!! $catalogRuleGrid->render() !!}
        </div>
    </div>
@endsection