@extends('layouts.app') @section('css') @endsection @section('content')
@if(Auth::user()->cdiscount_boutiques()->count() > 0)

Cdiscount

@foreach(Auth::user()->cdiscount_boutiques as $cdiscount) @endforeach
# @lang('boutique.nom boutique') @lang('boutique.Username') @lang('boutique.Password') @lang('boutique.Commandes confirmées') @lang('boutique.Status')
# {{ $cdiscount->nom }}
@lang('layout.Créé') {{ $cdiscount->created_at }}
{{ $cdiscount->user }} {{ $cdiscount->password }} @if(is_null($cdiscount->token))
@lang('boutique.pas de progrès')
@else @php $all_orders = $cdiscount->orders()->count();// all orders $shipped = $cdiscount->orders()->where('OrderState','Shipped')->count(); $progress = intval(($shipped / $all_orders) * 100); @endphp
{{$progress}}% @lang('layout.Compléter') @endif
{{is_null($cdiscount->token) ? '@lang('layout.Débranché')' : '@lang('layout.Connecté')'}}
@endif @if(Auth::user()->amazon_boutiques()->count() > 0)

Amazon

@foreach(Auth::user()->amazon_boutiques as $amazon) @endforeach
# @lang('boutique.nom boutique') @lang('boutique.Username') @lang('boutique.Password') @lang('boutique.Commandes confirmées') @lang('boutique.Status')
# {{ $amazon->nom }}
@lang('layout.Créé') {{ $amazon->created_at }}
{{ $amazon->user }} {{ $amazon->password }} @if(is_null($amazon->token))
@lang('layout.pas de progrès')
@else @php $all_orders = $amazon->orders()->count();// all orders $shipped = $amazon->orders()->where('OrderState','Shipped')->count(); $progress = intval(($shipped / $all_orders) * 100); @endphp
{{$progress}}% @lang('layout.Compléter') @endif
{{is_null($amazon->token) ? '@lang('layout.Débranché')' : '@lang('layout.Connecté')'}}
@endif
@endsection