@extends('user.user_master')
@section('user.user_content')
@php
$images = \App\Models\Theme::find(1);
@endphp
@section('user_title')
Message - Madhyamik Bidhyalaya Tulsipur Center
@endsection
<section>
        <!-- Page Content -->
        <div class="page-heading header-text" style="background-image: url('{{asset($images->image)}}');">
            <div class="container page-opacity">
                <div class="row">
                    <div class="col-md-12">
                        <h1> @if(session()->get('language') == 'nepali') {{ \Stichoza\GoogleTranslate\GoogleTranslate::trans($message->message_heading, 'ne') }} @else {{$message->message_heading}} @endif</h1>
                        <span>@if(session()->get('language') == 'nepali') {{ \Stichoza\GoogleTranslate\GoogleTranslate::trans('The only person you are destined to become is the person you decide to be.', 'ne') }} @else The only person you are destined to become is the person you decide to be. @endif</span>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-------Info Section start------->
    <section class="about-section bg-light pt-5 pb-5">
        <div class="container">
            <div class="row">
                <div class="col-md-12 right-info">
                    <div class="heading-section pr-md-5 mb-5">

                        <h2> <span class="fw-bold mb-5" id="typed1">@if(session()->get('language') == 'nepali') {{ \Stichoza\GoogleTranslate\GoogleTranslate::trans($message->message_heading, 'ne') }} @else {{$message->message_heading}} @endif</span></h2>
                    </div>
                    <div class="row">

                        <div class="col-md-3">
                            <img src="{{(!empty($message->user->profile_photo_path))?url($message->user->profile_photo_path):url('./uploads/default_images/no_image.jpg')}}"
                                class="img-fluid rounded-circle" alt="" >
                        </div>
                        <div class="col-md-9" height="270">
                            <p></p> @if(session()->get('language') == 'nepali') {!! \Stichoza\GoogleTranslate\GoogleTranslate::trans($message->message, 'ne') !!} @else {!! $message->message !!} @endif
                    </div>
                </div>
            </div>
        </div>
    </section>
    @endsection
