ldc-crm/resources/views/services/manage.blade.php
Romain Bonhomme 328e38ce38 Init
2020-12-01 17:02:10 +01:00

33 lines
1.4 KiB
PHP

@extends('layout.app')
@section('content')
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h2>Gestion des services <small class="text-muted">Gestion</small></h2>
@if (session('success'))
<span class="text-success text-center">{!! session('success') !!}</span>
@endif
<a href="{{ route('services') }}" class="btn btn-sm btn-primary float-right">Retour</a>
</div>
<div class="form-group">
<form action="{{ route('manage-service', $service ? $service->id : null) }}" method="POST">
@csrf
<div class="form-group form-row">
<label class="col-form-label col" for="name">Nom du service</label>
<input type="text" id="name" name="name" class="form-control col" value="{{ $service ? $service->name : null }}">
</div>
@if (!$edit)
<div class="form-group form-row">
<label class="col-form-label col" for="brand_id">Marque associée</label>
<select class="custom-select col" id="brand_id" name="brand_id">
@foreach($brands as $brand)
<option value="{{ $brand->id }}">{{ $brand->name }}</option>
@endforeach
</select>
</div>
@endif
<div class="text-center">
<input type="submit" class="btn btn-success" value="Enregistrer">
</div>
</form>
</div>
@endsection