84 lines
1.6 KiB
PHP
Raw Normal View History

2020-07-12 19:36:12 +01:00
@extends('adminlte::page')
@section('title', config('app.name') . ' | ' . __('Previewing application form'))
2020-07-12 19:36:12 +01:00
@section('content_header')
<h4>{{__('Administration')}} / {{__('Form builder')}} / {{__('Preview')}}</h4>
2020-07-12 19:36:12 +01:00
@stop
@section('js')
<x-global-errors></x-global-errors>
@stop
@section('content')
<div class="row">
<div class="col-6 offset-4">
<img src="/img/preview.svg" width="250px" alt="{{ __('Form preview illustration') }}" />
2020-07-12 19:36:12 +01:00
</div>
</div>
<div class="row mt-4">
<div class="col">
<div class="alert alert-success">
<h5><i class="fas fa-eye"></i> {{__('This is how your form looks like to applicants.')}}</h5>
2020-07-12 19:36:12 +01:00
<p>
{{__('You may edit it and add more fields later.')}}
2020-07-12 19:36:12 +01:00
</p>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
<h3>{{ $title }} - {{__('Form')}}</h3>
2020-07-12 19:36:12 +01:00
</div>
<div class="card-body">
@component('components.form', ['form' => $form, 'disableFields' => true])
@endcomponent
</div>
<div class="card-footer text-center">
<button type="button" class="btn btn-success ml-2" onclick="window.location.href='{{ route('showForms') }}'"><i class="fas fa-chevron-left"></i> {{__('Go back')}}</button>
<button type="button" class="btn btn-warning ml-2" onclick="window.location.href='{{ route('editForm', ['form' => $formID]) }}'"><i class="far fa-edit"></i> {{__('Edit')}}</button>
2020-07-12 19:36:12 +01:00
</div>
</div>
</div>
</div>
@stop
2020-07-16 06:46:20 +01:00
@section('footer')
@include('breadcrumbs.dashboard.footer')
@stop