@if($installed) {!! Form::open(['route' => ['modules.enable', $id], 'method' => 'put']) !!} {!! Form::button($enabled ? trans('lang.module_disable') : trans('lang.module_enable'), [ 'type' => 'submit', 'class' => 'mx-1 btn btn-outline-primary btn-sm', 'onclick' => "return confirm('Are you sure?')" ]) !!} {!! Form::close() !!} @endif @if(!$installed) {!! Form::open(['route' => ['modules.install', $id], 'method' => 'post']) !!} {!! Form::button(trans('lang.module_install'), [ 'type' => 'submit', 'class' => 'mx-1 btn btn-outline-primary btn-sm', 'onclick' => "return confirm('Are you sure?')" ]) !!} {!! Form::close() !!} @endif @if(!$updated) {!! Form::open(['route' => ['modules.update', $id], 'method' => 'post']) !!} {!! Form::button(trans('lang.module_update'), [ 'type' => 'submit', 'class' => 'mx-1 btn btn-outline-primary btn-sm', 'onclick' => "return confirm('Are you sure?')" ]) !!} {!! Form::close() !!} @endif {{trans('lang.module_buy')}}