ldc-mesbr-app/resources/views/site/edit.blade.php
Thibault Richy fe2a7b62c8 Retour 02
2019-02-26 16:31:42 +01:00

71 lines
2.6 KiB
PHP

@extends('layouts.main')
@section('content')
<h2><i class="fas fa-building"></i> Editer le site</h2>
<div class="form-wrapper">
<figure><img src="{{ asset($site->site_logo) }}" alt="{{ $site->site_nom }}"></figure>
{!! Form::model($site, ['route' => ['site.update', $site], 'enctype' => 'multipart/form-data']) !!}
@method('PUT')
<div class="form-split">
<div class="form-field">
{!! Form::label('site_id', 'Ref') !!}
{!! Form::input('text', 'site_id', null, ['required', 'readonly']) !!}
</div>
<div class="form-field">
{!! Form::label('site_nom', 'Nom') !!}
{!! Form::input('text', 'site_nom', null, ['required']) !!}
</div>
</div>
<div class="form-split">
<div class="form-field">
<div class="title">
{!! Form::label('site_logo', 'Logo') !!}
<span>150x60px</span>
</div>
{!! Form::file('site_logo', null, ['required']) !!}
{!! Form::input('hidden', 'site_logo_hidden', $site->site_logo) !!}
</div>
<div class="form-field">
{!! Form::label('site_contact', 'Contact') !!}
{!! Form::email('site_contact', null, ['required']) !!}
</div>
</div>
<h4>Informations pour génération des BR :</h4>
<div class="form-split">
<div class="form-field">
{!! Form::label('site_libelle', 'Libellé du site') !!}
{!! Form::input('text', 'site_libelle', null) !!}
</div>
<div class="form-field">
{!! Form::label('site_rcs', 'RCS du site') !!}
{!! Form::input('text', 'site_rcs', null) !!}
</div>
</div>
<div class="form-field submit">
{!! Form::submit('Mettre à jour') !!}
</div>
{!! Form::close() !!}
</div>
<div class="campagne-list">
<h2><i class="fa fa-folder"><i class="fas fa-ticket-alt"></i></i> Campagnes liées</h2>
<table>
<thead>
<tr>
<th>{{__('Ref') }}</th>
<th>{{__('Création') }}</th>
<th>{{__('Nom') }}</th>
</tr>
</thead>
<tbody>
@foreach($site->campagnes as $c)
<tr>
<td>{{ $c->camp_id }}</td>
<td>{{ $c->camp_name }}</td>
<td>{{ $c->camp_createdate }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endsection