@extends('admin.layouts.master') @section('content') @if($assigned->count())

{{ trans('app.assigned_to_me') }}

@foreach($assigned as $ticket ) @endforeach
{{ trans('app.merchant') }} {{ trans('app.subject') }} {{ trans('app.priority') }} {{ trans('app.replies') }} {{ trans('app.assigned_to') }} {{ trans('app.updated_at') }} {{ trans('app.option') }}
{{ trans('app.logo') }}

{{ $ticket->shop->name }}
{{ trans('app.by') . ' ' . $ticket->user->name }}

{!! $ticket->statusName() !!} {{ $ticket->category->name }}   {{ $ticket->subject }} {!! $ticket->priorityLevel() !!} {{ $ticket->replies_count }} {{ ($ticket->assignedTo) ? $ticket->assignedTo->name : '-' }} {{ $ticket->updated_at->diffForHumans() }} @can('reply', $ticket)   @endcan @can('update', $ticket)   @endcan @can('assign', $ticket)   @endcan
@endif

{{ trans('app.open_tickets') }}

@foreach($tickets as $ticket ) @endforeach
{{ trans('app.merchant') }} {{ trans('app.subject') }} {{ trans('app.priority') }} {{ trans('app.replies') }} {{ trans('app.assigned_to') }} {{ trans('app.updated_at') }} {{ trans('app.option') }}
{{ trans('app.logo') }}

{{ $ticket->shop->name }} @if($ticket->user)
{{ trans('app.by') . ' ' . $ticket->user->name }} @endif

{!! $ticket->statusName() !!} {{ $ticket->category->name }}   {{ $ticket->subject }} {!! $ticket->priorityLevel() !!} {{ $ticket->replies_count }} {{ ($ticket->assignedTo) ? $ticket->assignedTo->name : '-' }} {{ $ticket->updated_at->diffForHumans() }} @can('reply', $ticket)   @endcan @can('update', $ticket)   @endcan @can('assign', $ticket)   @endcan

{{ trans('app.closed_tickets') }}

@foreach($closed as $ticket ) @endforeach
{{ trans('app.shop') }} {{ trans('app.subject') }} {{ trans('app.priority') }} {{ trans('app.assigned_to') }} {{ trans('app.updated_at') }} {{ trans('app.option') }}
{{ $ticket->shop->name }}
{{ trans('app.by') . ' ' . $ticket->user->name }}
{!! $ticket->statusName() !!} {{ $ticket->category->name }}   {{ $ticket->subject }} {!! $ticket->priorityLevel() !!} {{ ($ticket->assignedTo) ? $ticket->assignedTo->name : '-' }} {{ $ticket->updated_at->diffForHumans() }} @can('update', $ticket) {!! Form::open(['route' => ['admin.support.ticket.reopen', $ticket->id], 'method' => 'POST', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.reopen'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
@endsection