@extends('layouts.popup.small')

@section('content')
	<div class="row">
        <div class="col-md-1"></div>
        <div class="col-md-10">
			<form id="action-select" action="{{ action('Automation2Controller@actionSelect', ['uid' => $automation->uid, 'key' => $key]) }}" method="POST" class="form-validate-jqueryz">
				{{ csrf_field() }}
				
				<input type="hidden" name="key" value="{{ $key }}" />
				
				@if(View::exists('automation2.action.' . $key))
					@include('automation2.action.' . $key)
				@endif
				
				<button class="btn btn-secondary select-action-confirm mt-2">
						{{ trans('messages.automation.trigger.select_confirm') }}
				</button>
			</form>
        </div>
    </div>
@endsection
