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

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

Back @if(Request::get("partnerUpdated")==1) @endif @if(session('connectionUpdate') ==1) @endif
Edit {{ $partner->nickname }}
{{ 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('active')) {{ $errors->first('active') }} @endif
Linked suppliers
@foreach($partner->suppliers()->orderBy("nickname")->get() as $supplier) @endforeach
Name Bonus rule Remove
{{$supplier->nickname }}
{{$supplier->name}}
{{\App\BonusRule::findOrFail($supplier->pivot->bonus_rules_id)->name}} @if($supplier->pivot->bonus_rules_id==1)
Percentage: {{$supplier->pivot->percentage}} @if(!empty($supplier->pivot->threshold ))
Threshold: {{$supplier->pivot->threshold}} @endif @endif
@endsection @section('scripts') @endsection