@extends('layout')
@section('title','Cart ')
@section('description','Payment')
@section('content')
@if (session('status'))
{{ session('status') }}
@endif
@if (session('error'))
{{ session('error') }}
@endif
@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@php
$idcli = session('client')->id ?? null;
$commande = DB::table('commande')->where('id', $idcmde)->first();
$ref = DB::table('commande')->where('id', $idcmde)->first()->reference;
$montant = $commande->montant ?? 0;
$nom = DB::table('client')->where('id', $idcli)->first()->nom;
$prenom = DB::table('client')->where('id', $idcli)->first()->prenom;
$email = DB::table('client')->where('id', $idcli)->first()->email;
$adr = DB::table('client')->where('id', $idcli)->first()->adresse;
$tel = DB::table('client')->where('id', $idcli)->first()->tel;
@endphp
@push('styles')
@endpush
@push('scripts')
@endpush
@endsection