@extends('layouts.squelette') @section('css_header') @endsection @section('titre') {{ __("Sociétés de facturation") }} @endsection @section('titre_header') {{ __("Sociétés de facturation") }} @endsection @section('titre_page') @isset($billing->bil_id)

{{ $billing->bil_socialReason }}

@else {{ __("Gestion des sociétés de facturation") }} @endisset @endsection @section('panel_boutons') @include('layouts.partials.panelboutons', ['btn_retour' => 'true']) @endsection @section('contenu') @isset($billing->bil_id)
@method('PATCH') @else @endisset @csrf
Général
@if (isset($billing->bil_id)) @component('components.cb_ouinon',[ 'title' => 'Actif', 'name' => 'bil_active', 'value' => @$billing->bil_active ]) @endcomponent @else @endif @if ( app('request')->input('cus_id') ) {{-- Création a partir de la fiche client--}} @component('components.select.select_customer',['customers' => @$customers,'value' => app('request')->input('cus_id'),'search' => 'true','emptyValue' => 'true','required' => 'true']) @endcomponent @else @component('components.select.select_customer',['customers' => @$customers,'value' => @$billing->cus_id,'search' => 'true','emptyValue' => 'true','required' => 'true']) @endcomponent @endif
@error('bil_socialReason') {{ $message }} @enderror
@error('bil_siret') {{ $message }} @enderror
Facturation
@component('components.select.select_tva',['tvas' => @$tvas,'value' => @$billing->tva_id,'search' => 'false','emptyValue' => 'true', 'required' => 'true']) @endcomponent
@component('components.cb_ouinon',[ 'title' => 'Affacturage', 'name' => 'bil_affacturage', 'value' => @$billing->bil_affacturage ]) @endcomponent
Localisation
@component('components.select.select_country',['countries' => @$countries,'value' => @$billing->cou_id,'search' => 'false','emptyValue' => 'true', 'required' => 'true']) @endcomponent
Contact
@endsection @section('js_footer') @endsection