@extends('Backend.Layouts.panel') @if(!empty($customer_id)) @section('title', 'Listando todos os boletos de: ' . $records[0]->customer->name) @else @section('title','Lista de boletos') @endif @section('content')
Novo boleto
@if(!empty($customer_id))

Listando todos os boletos de: {{$records[0]->customer->name}}

@else

Lista de boletos

@endif
@foreach ($records as $record) @switch($record->status) @case("EM ABERTO") @php $bg = "bg-info" @endphp @break @case("PAGO") @php $bg = "bg-success" @endphp @break @case("CANCELADO") @php $bg = "bg-warning" @endphp @break @case("VENCIDO") @php $bg = "bg-danger" @endphp @break @case("EXPIRADO") @php $bg = "bg-light" @endphp @break @default @php $bg = "bge" @endphp @endswitch
{{$record->status}}
  • ID Boleto: {{$record->id}}
  • Nome: {{$record->customer->name}}
  • Nome Fantasia: {{$record->customer->fantasy_name}}
  • Vencimento: {{$record->due_date}}
  • Valor: {{'R$ '. number_format($record->price, 2, ',', '.') }}
  • Valor Pago: {{'R$ '. number_format($record->price_paid, 2, ',', '.') }}
  • Meu número: {{$record->my_number}}
  • @if(!empty($record->payment_date))
  • Data Pagamento: {{$record->payment_date}}
  • @elseif(!empty($record->cancellation_date))
  • Data Cancelamento: {{$record->cancellation_date}}
  • @endif
@if($record->status == "EM ABERTO") Enviar e-mail Enviar WhatsApp Cancelar @endif
{{-- Editar --}} @endforeach
{!! $records->links('pagination::bootstrap-4') !!}
@endsection