@extends('layouts.app') @section('title') {{ __('Thông báo') }} @endsection @section('admin') active @endsection @php use Illuminate\Support\Facades\Storage; @endphp @section('section.header')

{{ __('Gửi thông báo đến đối tác') }}

@endsection @section('section.content')
@can('admin_send_notify')

Thông báo

Có thể paste text vào đây. Ảnh paste vào khung bên dưới.
Dán ảnh vào đây (Ctrl+V) hoặc chọn file
preview
Telegram sẽ gửi ảnh phía trên và phần text trong caption phía dưới, trong cùng một tin nhắn.
Gửi thông báo đến đối tác
Danh sách nhóm Telegram đối tác
{{ __('Cài đặt nhóm Telegram') }}
@csrf @if (!empty($groupNames) && count($groupNames))
@foreach ($groupNames as $list) @php $groupName = trim((string) ($list->group_name ?? '')); $username = trim((string) ($list->username ?? '')); @endphp @endforeach
@else
Không có sẵn nhóm nào
@endif
@if (Session::has('success'))
{{ Session::get('success') }}
@endif @if (Session::has('error'))
{{ Session::get('error') }}
@endif

Danh sách thông báo thường dùng

@if ($listNotifies->count())
    @php $halfCount = ceil($listNotifies->count() / 2); @endphp @foreach ($listNotifies->take($halfCount) as $list)
    @php $notifyData = [ 'id' => $list->id, 'content' => $list->content, 'image' => $list->image, 'image_url' => $list->image ? asset('storage/' . ltrim($list->image, '/')) : null, 'image_name' => $list->image ? basename($list->image) : null, ]; @endphp
  • {{ $list->content }}
  • @csrf @method('DELETE')

    @endforeach
    @foreach ($listNotifies->slice($halfCount) as $list)
    @php $notifyData = [ 'id' => $list->id, 'content' => $list->content, 'image' => $list->image, 'image_url' => $list->image ? asset('storage/' . ltrim($list->image, '/')) : null, 'image_name' => $list->image ? basename($list->image) : null, ]; @endphp
  • {{ $list->content }}
  • @csrf @method('DELETE')

    @endforeach
@else

{{ __('Chưa có thông báo nào được thêm.') }}

@endif
@else

Bạn không được quyền thực hiện tính năng này

@endcan
@endsection @section('scripts') @endsection @section('styles') @endsection