@extends('layouts.app') @section('content')
@php $users = [ ['id' => 1, 'name' => 'John Doe', 'role' => 'Artist', 'avatar' => 'https://ui-avatars.com/api/?name=John+Doe&background=e53935&color=fff', 'online' => true, 'unread' => 3, 'last_message' => 'Hey, I just released a new song!', 'time' => '2m ago'], ['id' => 2, 'name' => 'Jane Smith', 'role' => 'Cover Creator', 'avatar' => 'https://ui-avatars.com/api/?name=Jane+Smith&background=4caf50&color=fff', 'online' => true, 'unread' => 0, 'last_message' => 'I\'d like to cover your latest track', 'time' => '15m ago'], ['id' => 3, 'name' => 'Mike Johnson', 'role' => 'Composer', 'avatar' => 'https://ui-avatars.com/api/?name=Mike+Johnson&background=2196f3&color=fff', 'online' => false, 'unread' => 0, 'last_message' => 'The arrangement looks great!', 'time' => '1h ago'], ['id' => 4, 'name' => 'Sarah Williams', 'role' => 'User', 'avatar' => 'https://ui-avatars.com/api/?name=Sarah+Williams&background=9c27b0&color=fff', 'online' => false, 'unread' => 1, 'last_message' => 'I love your music!', 'time' => '3h ago'], ['id' => 5, 'name' => 'David Brown', 'role' => 'Artist', 'avatar' => 'https://ui-avatars.com/api/?name=David+Brown&background=ff9800&color=fff', 'online' => true, 'unread' => 0, 'last_message' => 'Let\'s collaborate on the next album', 'time' => '5h ago'], ]; for ($i = 0; $i < 5; $i++) { $user = $users[$i]; $activeClass = $i === 0 ? 'active bg-light' : ''; @endphp
@if($user['online']) @endif

{{ $user['name'] }}

{{ $user['time'] }}
{{ $user['last_message'] }} @if($user['unread'] > 0) {{ $user['unread'] }} @endif
{{ $user['role'] }}
@php } @endphp
@php $messages = [ ['sender' => 'other', 'content' => 'Hi there! I just released a new song and wanted to get your feedback.', 'time' => '10:05 AM'], ['sender' => 'me', 'content' => 'Hey John! That sounds great. What genre is it?', 'time' => '10:07 AM'], ['sender' => 'other', 'content' => 'It\'s a mix of pop and electronic. I\'ve been experimenting with some new sounds.', 'time' => '10:09 AM'], ['sender' => 'me', 'content' => 'Awesome! I\'d love to hear it. Can you share a preview?', 'time' => '10:12 AM'], ['sender' => 'other', 'content' => 'Sure! Here\'s a link to the preview:', 'time' => '10:15 AM'], ['sender' => 'other', 'content' => 'https://example.com/song-preview', 'time' => '10:15 AM', 'has_attachment' => true, 'attachment_type' => 'audio'], ['sender' => 'me', 'content' => 'This sounds amazing! The production quality is top-notch. I especially like the bridge section.', 'time' => '10:20 AM'], ['sender' => 'other', 'content' => 'Thanks! I spent a lot of time on that part. Do you think it\'s ready for release?', 'time' => '10:22 AM'], ['sender' => 'me', 'content' => 'Absolutely! Your fans will love it. When are you planning to release it?', 'time' => '10:25 AM'], ['sender' => 'other', 'content' => 'I\'m thinking next Friday. I\'ll be promoting it on social media starting tomorrow.', 'time' => '10:28 AM'], ]; foreach ($messages as $message) { $isMe = $message['sender'] === 'me'; $hasAttachment = isset($message['has_attachment']) && $message['has_attachment']; @endphp
@if(!$isMe) @endif
{{ $message['content'] }}
@if($hasAttachment)
@if($message['attachment_type'] === 'audio')
New Song Preview.mp3
3:45 • 4.2 MB
@endif
@endif
{{ $message['time'] }}
@if($isMe) @endif
@php } @endphp
@endsection @section('scripts') @endsection