@extends('layouts.backend') @section('content')

Messages

    @foreach ($messages as $msg) @php $type='receiver'; $sender_type=$msg->getSender->name; if ($msg->sender_type==0) { $type='sender'; $sender_type=explode(" ",$msg->getSender->name)[0]; } @endphp
  • {{$sender_type}}: {{$msg->message}}
    {{date('Y/m/d H:i',strtotime($msg->updated_at))}}
  • @endforeach
@if($customer > 0) @endif
@endsection