%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/resources/views/Clients/
Upload File :
Create Path :
Current File : //var/www/html/resources/views/Clients/update.blade.php

@extends('template')

@section('title')
J2HB | Modifier client
@endsection

@section('content')
    <div class="container">
 
    <h5>J2HB | Modifier client</h5>        
        
    <form action={{ route('store_client', ['id' => $client->id]) }} method="POST" enctype="multipart/form-data">
            @csrf
            @if(session()->has('message'))
            <div class="alert alert-success">
                {{ session()->get('message') }}
            </div>
            @endif
            @foreach ($errors->all() as $message)
            <div class="alert alert-danger">
                {{ $message }}
            </div>
            @endforeach
            <div class="modal-body">
                <div class="container-fluid">
                    <div class="row col-12">
                        <div class="col-12">
                            <div class="form-group mb-3">
                                <input type="number" class="form-control form-control-user" name="nbdossier_holder" id="nbdossier" 
                                value="{{ $client->meta->nbdossier }}" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="row col-12">
                        <div class="col-6">
                            <div class="form-group mb-3">
                                <input type="text" class="form-control form-control-user" name="name" id="name" value="{{ old('name') ?: $client->name }}">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group mb-3">
                                <input type="text" class="form-control form-control-user" name="manager"
                                    id="manager" value="{{ old('manager') ?: $client->meta->manager }}">
                            </div>
                        </div>

                    </div>
                    <div class="row col-12">
                        <div class="col-6">
                            <div class="form-group mb-3">
                                <input type="tel" class="form-control form-control-user" name="phone" id="phone" value="{{ old('phone') ?: $client->phone }}">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group mb-3">
                                <input type="email" class="form-control form-control-user" name="email" id="email" value="{{ old('email') ?: $client->email }}">
                            </div>
                        </div>


                    </div>
                    <div class="row col-12">
                        <div class="col-6">
                            <div class="form-group mb-3">
                                <input type="text" class="form-control form-control-user" name="adress"
                                    id="adress" value="{{ old('adress') ?: $client->meta->adress }}">
                            </div>

                        </div>
                        <div class="col-6">
                            <div class="form-group mb-3">
                                <input type="text" class="form-control form-control-user" name="ville" id="ville" value="{{ old('ville') ?: $client->meta->ville }}" >
                            </div>
                        </div>
                    </div>

                    <div class="row col-12">
                        <div class="col-6">
                            <div class="form-group mb-3">
                                <input type="date" class="form-control form-control-user" name="date_j"
                                    id="date_j" value="{{ old('date_j') ?: $client->meta->date_j }}">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group mb-3">
                                <input type="url" class="form-control form-control-user" name="website"
                                    id="website" value="{{ old('website') ?: $client->meta->website }}">
                            </div>
                        </div>
                    </div>
                    <div class="row col-12">
                        <div class="col-6">
                            <div class="form-group mb-3">
                                <input type="text" class="form-control form-control-user" name="cin" id="cin"  value="{{ old('cin') ?: $client->meta->cin }}">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group mb-3">
                                <input type="text" class="form-control form-control-user" name="agrement_number"
                                    id="agrement_number"  value="{{ old('agrement_number') ?: $client->meta->agrement_number }}">
                            </div>
                        </div>
                    </div>
                    <div class="row col-12">
                        <div class="col-6">
                            <div class="form-group mb-3">
                                <input type="text" class="form-control form-control-user" name="ice" id="ice" value="{{ old('ice') ?: $client->meta->ice }}">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group mb-3"><input type="text" class="form-control form-control-user" name="rc" id="rc" value="{{ old('rc') ?: $client->meta->rc }}" >
                            </div>
                        </div>
                    </div>

                    <div class="row col-12">
                        <div class="col-12">
                            <div class="input-group mb-3">
                                <div class="custom-file">
                                    <input type="file" class="custom-file-input" name="upload" id="upload"
                                        aria-describedby="inputGroupFileAddon01" >
                                  <label class="custom-file-label" for="inputGroupFile01">Choose file</label>
                                </div>
                            </div>
                            <input type="hidden" name="upload_placeholder" value="{{ $client->meta->upload  }}">
                        </div>
                    </div>

                </div>
                <div class="text-center">
                    <button type="submit" class="btn btn-primary btn-user">Modifier</button>
                </div>
            </div>
        </form>

    </div>
@endsection

Zerion Mini Shell 1.0