@extends('layouts.appadmin')

@section('content')
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
  <div class="container-fluid">
    <h2 class="mb-4">Informations de la société</h2>
    @if ($info)
        <div class="row">
            <div class="col-md-6">
                <p><strong>Nom:</strong> {{ $info->nom }}</p>
                <p><strong>Téléphone:</strong> {{ $info->tele }}</p>
                <p><strong>Adresse:</strong> {{ $info->adress }}</p>
            </div>
            <div class="col-md-6">
                <p><strong>ICE:</strong> {{ $info->ice }}</p>
                <p><strong>RIB:</strong> {{ $info->rib }}</p>
                @if ($info->logo)
                    <p><strong>Logo:</strong></p>
                    <img src="{{ asset( $info->logo) }}" alt="Logo" class="img-fluid" width="150">
                @endif
            </div>
        </div>
    @else
        <p>Aucune information disponible.</p>
    @endif
    <a href="{{ route('infos.edit', $info->id) }}" class="btn btn-warning">Modifier</a>
</div>
@endsection
