@extends('front.frontLayout') @section('title','Appointment Booking') @section('pagelevelcss') @stop @section('content') @php $service = $name_url; $name = Session::get('name'); $appointment_time = (Session::get('appointment_time')) ? Session::get('appointment_time') : ""; $appointment_date = (Session::get('appointment_date')) ? Session::get('appointment_date') : ""; if(Session::get('name')){ $user_name = Session::get('name'); $user_email = Session::get('email'); $user_phone = Session::get('phone'); } else if(Auth::user() && Auth::user()->name){ $user_name = Auth::user()->name; $user_email = Auth::user()->email; $user_phone = Auth::user()->phone; } else { $user_name = old('name'); $user_email = old('email'); $user_phone = old('phone'); } @endphp {{ csrf_field() }} Personal information @foreach($packages as $value) @if(Session::get('name_url') == $value->name_url) Service:{{ $value->name }} ${{ $value->price }} @elseif($service == $value->name_url) Service:{{ $value->name }} ${{ $value->price }} @endif @endforeach Select Service* @foreach($packages as $value) name_url || Session::get('name_url') == $value->name_url) ? 'selected' : ''}}>{{ $value->name }} ${{ $value->price }} @endforeach Select appointment time {{ (Session::get('description')) ? Session::get('description') : (old('description')) ? old('description') : ""}} Choose file* Submit Clear @endsection @section('pageleveljs') @stop
Service:{{ $value->name }} ${{ $value->price }}