@extends('layouts.app') @section('title', 'Créer BL') @section('stylesheets') @endsection @section('content')
{!! Form::open([ 'enctype' => 'multipart/form-data', 'route' => 'cart.store', 'method' => 'POST', 'id' => 'create-cart-form', ]) !!}
Creer Nouvelle Commande
{{-- @if($errors->any()) {!! implode('', $errors->all('
:message
')) !!} @endif --}}
{{--
--}}
@error('items')
{{ $message }}
@enderror @php $items = old('items', []); $noitems = is_array($items) ? count($items) : 0; @endphp @if($noitems > 0) @foreach($items as $key => $item) @endforeach @endif
Nom du produit Prix dépend de Qté dépend de Qté Unité Remise(%) TVA(%) Prix Total Controle
att att
@error('total')
{{ $message }}
@enderror
Total
{!! Form::close() !!}
Détails de paiement
{{-- --}}
{{-- --}}
@php $attributes = old('attributes', []); $noattributes = is_array($attributes) ? count($attributes) : 0; if (isset($attributes)) { if (!is_array($attributes)) { $noattributes = count(json_decode($attributes, true)); $attributes = json_decode($attributes); } } else { $attributes = []; } @endphp @if ($noattributes > 0) @foreach ($attributes as $key => $item)

{{ Form::select('currency_id', \App\Helpers\Helper::makeDropDownListFromModel(new \App\Models\Currency(), 'name'),1, ['id' => 'currency_id', 'name' => 'paiements[cash]['. $key .'][currency_id]', 'class' => $errors->has('currency_id') ? 'form-control form-select is-invalid' : 'form-control form-select']) }} @error('currency_id')
{{ $message }}
@enderror
@endforeach @endif
@php $attributes = old('attributes', []); $noattributes = is_array($attributes) ? count($attributes) : 0; if (isset($attributes)) { if (!is_array($attributes)) { $noattributes = count(json_decode($attributes, true)); $attributes = json_decode($attributes); } } else { $attributes = []; } @endphp @if ($noattributes > 0) @foreach ($attributes as $key => $item)

@endforeach @endif
@php $attributes = old('attributes', []); $noattributes = is_array($attributes) ? count($attributes) : 0; if (isset($attributes)) { if (!is_array($attributes)) { $noattributes = count(json_decode($attributes, true)); $attributes = json_decode($attributes); } } else { $attributes = []; } @endphp @if ($noattributes > 0) @foreach ($attributes as $key => $item)

@endforeach @endif
@php $attributes = old('attributes', []); $noattributes = is_array($attributes) ? count($attributes) : 0; if (isset($attributes)) { if (!is_array($attributes)) { $noattributes = count(json_decode($attributes, true)); $attributes = json_decode($attributes); } } else { $attributes = []; } @endphp @if ($noattributes > 0) @foreach ($attributes as $key => $item)

@endforeach @endif
{{--
{{ Form::select('currency_id', \App\Helpers\Helper::makeDropDownListFromModel(new \App\Models\Currency(), 'name') , null, ['id'=> 'currency_id', 'name'=> 'currency_id', 'class' => $errors->has('currency_id') ? 'form-control form-select is-invalid' : 'form-control form-select'] ) }} @error('currency_id')
{{ $message }}
@enderror
--}} {{--
--}}
@endsection @section('scripts') @endsection