{{-- Extends layout --}} @extends('layout.default') {{-- Content --}} @section('content') {{-- Dashboard 1 --}}
{{--
@include('pages.widgets._widget-1', ['class' => 'card-stretch gutter-b'])
@include('pages.widgets._widget-2', ['class' => 'card-stretch gutter-b'])
@include('pages.widgets._widget-3', ['class' => 'card-stretch card-stretch-half gutter-b']) @include('pages.widgets._widget-4', ['class' => 'card-stretch card-stretch-half gutter-b'])
--}}

@if ($project->id) {{$project->name}} @else Nouveau projet @endif

@if ($project->id) @if($project->brand->url) page projet @else page projet @endif @endif
{{ csrf_field() }}
{{ Form::text('name', $project->name, array('placeholder'=> 'Entrer le nom du project','class' => 'form-control m-input')) }} Ce nom sera visible par votre client
{{ Form::text('key', $project->key, array('placeholder'=> 'Entrer la clé du project','class' => 'form-control m-input')) }} La clé servira à partager ce projet avec votre client
@if (!$project->id) @php $configArray = []; foreach ($configs as $config) { $configArray[$config->id] = $config->name; } @endphp {{ Form::select('config', $configArray, null, ['class' => 'custom-select form-control']) }} @else {{$project->config->name }} @endif
@php $brandArray = []; foreach ($brands as $brand) { $brandArray[$brand->id] = $brand->name; } @endphp {{ Form::select('brand', $brandArray, $project->brand ? $project->brand->id : null, ['class' => 'custom-select form-control']) }}
@php $statusArray = [ \App\Project::statusCreated => __('step_by_step.project_status_'.\App\Project::statusCreated), \App\Project::statusInProgress => __('step_by_step.project_status_'.\App\Project::statusInProgress), \App\Project::statusFinished => __('step_by_step.project_status_'.\App\Project::statusFinished), ]; @endphp {{ Form::select('status', $statusArray, $project->status ?? null, ['class' => 'custom-select form-control']) }}

Notification

{{ csrf_field() }}
@if( $notificationSettings['new_comment']['type'] != \App\Project::class) @endif {{ Form::checkbox('notification_settings[new_comment]',1, $notificationSettings['new_comment']['active'])}}
@if( $notificationSettings['value_change']['type'] = \App\Project::class) @endif {{ Form::checkbox('notification_settings[value_change]',1, $notificationSettings['value_change']['active'])}}
@if( $notificationSettings['item_validation']['type'] != \App\Project::class) @endif {{ Form::checkbox('notification_settings[item_validation]',1, $notificationSettings['item_validation']['active'])}}
@if ($project->id)
{{ csrf_field() }}
@endif
{{--
@include('pages.widgets._widget-6', ['class' => 'card-stretch gutter-b'])
@include('pages.widgets._widget-7', ['class' => 'card-stretch gutter-b'])
@include('pages.widgets._widget-8', ['class' => 'card-stretch gutter-b'])
@include('pages.widgets._widget-9', ['class' => 'card-stretch gutter-b'])
--}}
@endsection {{-- Scripts Section --}} @section('scripts') {{----}} @endsection