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

Tickets

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
All Tickets New Ticket
@foreach($tickets as $ticket) @php $user = App\Models\User::where('id',$ticket->user_id)->first(); $region = App\Models\Region::where('id',$user->region)->first(); @endphp @if($region) @else @endif @if($ticket->status == 1) @else @endif @endforeach
User Region Location Subject Message Status Actions
{{$user->name}}{{$region->name}}N/A{{$user->location}} {{$ticket->subject}} {{$ticket->message}} Success Pending
@endsection