@extends('layouts.app') @section('content')

Edit {{$supplier->nickname}} (supplier)

Back Users @if(Request::get("supplierCreated")==1) @endif @if(Request::get("supplierUpdated")==1) @endif @if(session('connectionUpdate') ==1) @endif @if ($supplier->documents == "1" && empty($supplier->documentFile))
There is no email attachement uploaded yet.
@endif
General information
@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{ csrf_field() }}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('nickname')) {{ $errors->first('nickname') }} @endif
@if ($errors->has('username')) {{ $errors->first('username') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if ($errors->has('documents')) {{ $errors->first('documents') }} @endif

Save supplier first to set attached documents and email texts

@if ($errors->has('active')) {{ $errors->first('active') }} @endif
@if($supplier->documents == "1")
@if ($errors->has('documentFile')) {{ $errors->first('documentFile') }} @endif @if(!empty($supplier->documentFile))

Current file: {{basename($supplier->documentFile)}}

@endif
@if ($errors->has('documentEmail')) {{ $errors->first('documentEmail') }} @endif Send test email to me
@endif {{--
--}} {{----}} {{--
--}} {{----}} {{--@if ($errors->has('adminEmail'))--}} {{----}} {{--{{ $errors->first('adminEmail') }}--}} {{----}} {{--@endif--}} {{--
--}} {{--
--}}
Linked partners
@foreach($supplier->partners()->orderBy("nickname")->get() as $partner) @endforeach
Name Bonus rule Remove
{{$partner->nickname }}
{{$partner->name}}
{{\App\BonusRule::findOrFail($partner->pivot->bonus_rules_id)->name}} @if($partner->pivot->bonus_rules_id==1)
Percentage: {{$partner->pivot->percentage}} @if(!empty($partner->pivot->threshold ))
Threshold: {{$partner->pivot->threshold}} @endif @endif
@endsection @section('scripts') @endsection